Skip to content

Instantly share code, notes, and snippets.

View akanto's full-sized avatar

Attila Kanto akanto

  • Hortonworks
  • Hungary
View GitHub Profile
@akanto
akanto / ka-mnist.sh
Created February 6, 2017 14:54
ka-mnist.sh
#!/bin/bash
get_mnist_example() {
su -c "cd /home/spark && git clone https://github.com/akanto/ml.git && cd ml && git checkout hcc-cuda-blog" spark
}
main() {
get_mnist_example
}
@akanto
akanto / install-nvidia-driver.sh
Last active February 6, 2017 14:37
install-nvidia-driver.sh
#!/bin/bash
install_drivers() {
cat > /etc/yum.repos.d/amzn-graphics.repo <<'EOF'
[amzn-graphics]
name=amzn-graphics-Base
mirrorlist=http://repo.$awsregion.$awsdomain/$releasever/graphics/mirror.list
mirrorlist_expire=300
metadata_expire=300
priority=9
@akanto
akanto / custom.conf
Last active May 6, 2016 07:28
custom.conf
auto_accept: True
external_auth:
pam:
saltuser:
- .*
- '@wheel' # to allow access to all wheel modules
- '@runner' # to allow access to all runner modules
- '@jobs' # to allow access to the jobs runner and/or wheel module
@akanto
akanto / perf-test-repl3
Created April 11, 2016 14:47
perf-test-repl3
[hdfs@docker-ambari ~]# for i in 1 4 8 12 16 20 24 28 32 36; do
> hadoop jar $JAR_JOBCLIENT TestDFSIO -Ddfs.replication=3 -write -nrFiles $i -fileSize 8192
> done
WARNING: Use "yarn jar" to launch YARN applications.
16/04/11 14:03:40 INFO fs.TestDFSIO: TestDFSIO.1.8
16/04/11 14:03:40 INFO fs.TestDFSIO: nrFiles = 1
16/04/11 14:03:40 INFO fs.TestDFSIO: nrBytes (MB) = 8192.0
16/04/11 14:03:40 INFO fs.TestDFSIO: bufferSize = 1000000
16/04/11 14:03:40 INFO fs.TestDFSIO: baseDir = /benchmarks/TestDFSIO
16/04/11 14:03:41 INFO fs.TestDFSIO: creating control file: 8589934592 bytes, 1 files
@akanto
akanto / perf-test-repl2
Created April 11, 2016 14:03
perf-test-repl2
WARNING: Use "yarn jar" to launch YARN applications.
16/04/11 13:41:18 INFO fs.TestDFSIO: TestDFSIO.1.8
16/04/11 13:41:18 INFO fs.TestDFSIO: nrFiles = 1
16/04/11 13:41:18 INFO fs.TestDFSIO: nrBytes (MB) = 8192.0
16/04/11 13:41:18 INFO fs.TestDFSIO: bufferSize = 1000000
16/04/11 13:41:18 INFO fs.TestDFSIO: baseDir = /benchmarks/TestDFSIO
16/04/11 13:41:19 INFO fs.TestDFSIO: creating control file: 8589934592 bytes, 1 files
16/04/11 13:41:19 INFO fs.TestDFSIO: created control files for: 1 files
16/04/11 13:41:19 INFO impl.TimelineClientImpl: Timeline service address: http://ip-10-0-71-101.node.dc1.consul:8188/ws/v1/timeline/
16/04/11 13:41:19 INFO client.RMProxy: Connecting to ResourceManager at ip-10-0-71-101.node.dc1.consul/10.0.71.101:8050
@akanto
akanto / perf-test-repl1
Last active April 11, 2016 12:44
perf-test-repl1
[hdfs@docker-ambari ~]# for i in 1 4 8 12 16 20 24 28 32 36; do hadoop jar $JAR_JOBCLIENT TestDFSIO -Ddfs.replication=1 -write -nrFiles $i -fileSize 8192; done
WARNING: Use "yarn jar" to launch YARN applications.
16/04/11 12:31:39 INFO fs.TestDFSIO: TestDFSIO.1.8
16/04/11 12:31:39 INFO fs.TestDFSIO: nrFiles = 1
16/04/11 12:31:39 INFO fs.TestDFSIO: nrBytes (MB) = 8192.0
16/04/11 12:31:39 INFO fs.TestDFSIO: bufferSize = 1000000
16/04/11 12:31:39 INFO fs.TestDFSIO: baseDir = /benchmarks/TestDFSIO
16/04/11 12:31:40 INFO fs.TestDFSIO: creating control file: 8589934592 bytes, 1 files
16/04/11 12:31:40 INFO fs.TestDFSIO: created control files for: 1 files
16/04/11 12:31:41 INFO impl.TimelineClientImpl: Timeline service address: http://ip-10-0-71-101.node.dc1.consul:8188/ws/v1/timeline/
@akanto
akanto / multi-node-hdfs-yarn
Last active May 9, 2017 11:24
multi-node-hdfs-yarn BLUEPRINT
{
"host_groups": [
{
"name": "master",
"components": [
{
"name": "NAMENODE"
},
{
"name": "SECONDARY_NAMENODE"
@akanto
akanto / docker-install
Last active August 29, 2015 14:26
docker install
: << USAGE
##################################
curl -L https://gist.githubusercontent.com/akanto/3bc6140a4aadece4677c/raw/7dc1661b3ce1e665e2bde82ba43f81c43d4e9bc4/docker-install | bash
##################################
USAGE
debug() {
[[ "$DEBUG" ]] && echo "-----> $*" 1>&2
}
Hibernate:
/* named HQL query Stack.findById */ select
stack0_.id as id1_18_0_,
resources1_.id as id1_14_1_,
instancegr2_.id as id1_9_2_,
instanceme3_.id as id1_10_3_,
stack0_.account as account2_18_0_,
stack0_.consulServers as consulSe3_18_0_,
stack0_.credential_id as credent14_18_0_,
stack0_.description as descript4_18_0_,
[root@tera-test-cent7-master3-5-1435741883353 ~]# docker logs 9618e34d64a6
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
Node name: 'tera-test-cent7-master3-5-1435741883353'
Datacenter: 'dc1'
Server: false (bootstrap: false)
Client Addr: 0.0.0.0 (HTTP: 8500, HTTPS: -1, DNS: 53, RPC: 8400)
Cluster Addr: 10.0.189.12 (LAN: 8301, WAN: 8302)