Hadoop: Not able to find the start-dfs.sh start-mapred.sh scripts

I have installed Hadoop by following this tutorial.

I installed it using ppa.

When I reached step 12 : Starting Hadoop Cluster.

I got stuck.

When I do cd ~/tasdik/hadoop/bin/ It says no such file or directory.

Any suggestions?

1

2 Answers

The tutorial step 2 asked to create a new user: hduser.

So if you decided to adopt this username for the Hadoop user, the path of start-all.sh should be:

cd /home/hduser/hadoop/bin/
start-all.sh

Or if installed system-wide:

/usr/lib/hadoop/bin/ 
4

I have found the start-all.sh file on /hadoop-x.x.x/sbin directory.

path/to/hadoop-x.x.x/sbin/start-all.sh

where hadoop-x.x.x is a directory which was created on extracting the downloaded the hadoop.tar.gz file.

If you initiate the file, it would show

$ bash /home/foo/hadoop-2.7.0/sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh

So, it's better to invoke, start-dfs.sh located on the same directory itself.

bash /home/foo/hadoop-2.7.0/sbin/start-dfs.sh
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like