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";
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
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..
ReplyDeleteHadoop Training in Chennai