Monday, October 26, 2015

Setting up hadoop tips

How to Set Up Hadoop Home to use hadoop command directly:
vim ~/.profile
export HADOOP_HOME=/usr/local/bin/hadoop-2.7.1;
export PATH=$PATH:${HADOOP_HOME}/bin;

alias hstart="/usr/local/bin/hadoop-2.7.1/sbin/start-dfs.sh;/usr/local/bin/hadoop-2.7.1/sbin/start-yarn.sh";
alias hstop="/usr/local/bin/hadoop-2.7.1/sbin/stop-yarn.sh;/usr/local/bin/hadoop-2.7.1/sbin/stop-dfs.sh";

Why have to source ~/.profile every time? 
—> since ~/.bash_profile exists.
Solution:

echo "source ~/.profile" >> .bash_profile

1 comment:

  1. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..

    Hadoop Training in Chennai

    ReplyDelete