Brij Raj Kishore Brij Raj Kishore - 4 months ago 41
Linux Question

yarn-env.sh : command not found

I have Hadoop 2.7.2 installed on Ubuntu 16.04. When I run the command:


start-yarn.sh


It gives the following output:


starting yarn daemons
/usr/local/hadoop-2.7.2/etc/hadoop/yarn-env.sh: line 122: rt: command not found
starting resourcemanager, logging to /usr/local/hadoop-2.7.2/logs/yarn-hduser-resourcemanager-brij-Compaq-15-Notebook-PC.out
/usr/local/hadoop-2.7.2/etc/hadoop/yarn-env.sh: line 122: rt: command not found
localhost: /usr/local/hadoop-2.7.2/etc/hadoop/yarn-env.sh: line 122: rt: command not found
localhost: starting nodemanager, logging to /usr/local/hadoop-2.7.2/logs/yarn-hduser-nodemanager-brij-Compaq-15-Notebook-PC.out
localhost: /usr/local/hadoop-2.7.2/etc/hadoop/yarn-env.sh: line 122: rt: command not found


I am just curious about the last line that is


yarn-env.sh
: command not found.


Should I be concerned? Or have I done anything wrong which resulted in this error?

Answer

Sorry, i have figured out my mistake. I had replaced export by rt in

bashrc

by mistake. I have corrected it and now its working

Comments