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 / 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
#!/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 / 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
@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
{
"configurations": [
{
"nagios-env": {
"nagios_contact": "admin@localhost"
}
}
],
"host_groups": [
{
@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,