Error while starting hadoop daemons
Solution 1
Follow below steps
==> Go to hadoop home directory: cd /usr/local/hadoop/
==> Start the process of datanodes and namenodes : bin/hadoop namenode -format
==> Start deamons : sbin/start-dfs.sh (start-all.sh is depreciated)
Hope that helps you :)
Solution 2
write ./start-all.sh
If it says start-all.sh: command not found
That means its not yet into executable mode. Change it to executable via chmod
chmod +x *.sh
Admin
Updated on June 30, 2022Comments
-
Admin almost 2 years
I am new to hadoop as well as ubuntu and trying to install Hadoop 2.2.0 in (Ubuntu) on my system. When I tried to start the daemons using start-all.sh or start-dfs.sh, it throws an error saying "Command not found". I have issued this command as an user created under the hadoop group only.
> hduser@nitk-OptiPlex-9010:~/hadoop-2.2.0/sbin$ start-all.sh > start-all.sh: command not found
Can someone please help me out to resolve this issue?
Also when I tried modifying the core-site, hdfs-site xml files under etc/hadoop folder, core-site.xml~, hdfs-site.xml~ files were created (New files with a tilde symbol at the end of their names got created). I deleted those new files created. Is this creating a problem?