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
$ tar -xzvf whirr-0.8.1.tar.gz
$ cd whirr-0.8.1
$ ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa_whirr
$ cd whirr-0.8.1
# 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
whirr.cluster-user=whirr
$ cd whirr-0.8.1
$ bin/whirr launch-cluster --config whirr_cdh.properties
$ cd ~/.whirr/testcluster
$ sh hadoop-proxy.sh
$ export HADOOP_CONF_DIR=~/.whirr/testcluster/hadoop-site.xml
$ hadoop fs -ls /
$ bin/hadoop --config ~/.whirr/testcluster fs -ls /
## Cluster name goes here.
whirr.cluster-name=yarncluster
# Change the number of machines in the cluster here
whirr.instance-templates=1 hadoop-namenode+yarn-resourcemanager+mapreduce-historyserver,2 hadoop-datanode+yarn-nodemanager
# Install JAVA
whirr.java.install-function=install_openjdk
whirr.java.install-function=install_oab_java