Skip to content

Instantly share code, notes, and snippets.

View SwathiMystery's full-sized avatar
🏠
Working from home

idevnull SwathiMystery

🏠
Working from home
View GitHub Profile
$ bin/hadoop --config ~/.whirr/testcluster fs -ls /
$ export HADOOP_CONF_DIR=~/.whirr/testcluster/hadoop-site.xml
$ hadoop fs -ls /
$ sh hadoop-proxy.sh
$ cd ~/.whirr/testcluster
$ cd whirr-0.8.1
$ bin/whirr launch-cluster --config whirr_cdh.properties
whirr.cluster-user=whirr
# Cluster name goes here
whirr.cluster-name=testcluster
# Change the number of machines in the cluster here
# Using 3 DN and TT and 1JT and NN# Ganglia is configured
whirr.instance-templates=1 hadoop-jobtracker+hadoop-namenode+ganglia-monitor+ganglia-metad,3 hadoop-datanode+hadoop-tasktracker+ganglia-monitor
# Install JAVA
whirr.java.install-function=install_openjdk
whirr.java.install-function=install_oab_java
$ ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa_whirr
$ cd whirr-0.8.1
$ tar -xzvf whirr-0.8.1.tar.gz
$ cd whirr-0.8.1