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 / kibana-system-resources.json
Last active August 29, 2015 14:05
System Resources description for kibana
{
"title": "System Resources",
"services": {
"query": {
"list": {
"0": {
"query": "collectd_type:\"load\"",
"alias": "Load",
"color": "#70DBED",
"id": 0,
{
"configurations": [
{
"nagios-env": {
"nagios_contact": "admin@localhost"
}
}
],
"host_groups": [
{
@akanto
akanto / cbd-dev.sh
Last active August 29, 2015 14:20 — forked from lalyos/cbd-dev.sh
#!/bin/bash
consul_dns_resolver() {
sudo mkdir -p /etc/resolver
echo "Writing resolver to /etc/resolver/consul"
sudo tee /etc/resolver/consul << EOF
domain consul
search node.consul service.consul
nameserver 192.168.59.103
EOF
@akanto
akanto / show_lsof
Created May 14, 2015 11:47
List of open file short by count
#List of open file short by count:
lsof 2>/dev/null | awk '{print $2}' | sort | uniq -c | sort -n
lsof 2>/dev/null | wc -l
#!/bin/bash
export HADOOP_LIBS=/usr/hdp/2.2.4.2-2/hadoop-mapreduce
export JAR_EXAMPLES=$HADOOP_LIBS/hadoop-mapreduce-examples.jar
export JAR_JOBCLIENT=$HADOOP_LIBS/hadoop-mapreduce-client-jobclient-2.6.0.2.2.4.2-2-tests.jar
terasort(){
echo "############################################"
echo Running terasort tests..
echo "############################################"
@akanto
akanto / gist:6efe88eae1bec73a7f88
Last active August 29, 2015 14:22
Terasort benchmark result
#Octave / Matlab
#The values are in seconds and the vectors are containing the execution time of first, second and 3rd run.
#Texas
teragen=[ 419 427 440 ]; [mean(teragen) std(teragen)]
terasort=[ 2165 1735 1887 ]; [mean(terasort) std(terasort)]
teravalidate=[ 162 147 144 ]; [mean(teravalidate) std(teravalidate)]
#GCP
[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)
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_,
@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
}
@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"