Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

start-dfs.sh: command not found

I have installed hadoop 2.7.0. on Ubuntu 14.04. But the code start-dfs.sh is not working. when I run this code It returns start-dfs.sh: command not found. The start-dfs.sh, start-all.sh , stop-dfs.sh and stop-all.sh are in the sbin directory. I have installed and set the paths of java and hadoop correctly. The codes hadoop version and ssh localhost also working. what might be the problem?

like image 847
fahim Avatar asked Jun 13 '15 15:06

fahim


People also ask

Where is the start-DFS sh file located?

The start-dfs.sh, start-all.sh , stop-dfs.sh and stop-all.sh are in the sbin directory. I have installed and set the paths of java and hadoop correctly. The codes hadoop version and ssh localhost also working. what might be the problem?

What is the best way to start DFS in Ubuntu?

Instead use start-dfs.sh and start-yarn.sh So, it's better to invoke, start-dfs.sh located on the same directory itself. Thanks for contributing an answer to Ask Ubuntu!

Is sbin path mandatory for Hadoop installation?

Summary: While Hadoop installation sbin path mandatory because here all daemons files are available otherwise will get start-all.sh, command not found an error in Linux box.

How to debug Hadoop daemons are not started in Linux?

How to debugging Hadoop daemons are not started in Linux getting start-all.sh, command not found in putty (terminal). First to check core-site.xml, hdfs-site.xml and yarn-site.xml and etc in Hadoop folder first.


1 Answers

Does the file start-dfs.shexists in the directory ${HADOOP_HOME}/bin? If not, please try to run commond sbin/start-dfs.sh.

like image 127
gwgyk Avatar answered Oct 31 '22 00:10

gwgyk