Support Questions

Find answers, ask questions, and share your expertise

HDFS not starting; hdfs command not found

avatar
Super Collaborator

13139-hdfs-command-not-found.png

hdfs-client-install.txtI have installed sandbox, initially HDFS was on maintenance mode and it was stopped.

Later turned off maintenance mode and tried starting HDFS. Wasnt successful in starting HDFS.

Also HDFS command is showing as command not found. Am attaching the screenshots and log file

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Viswa

Please make sure that you do ssh to Sandbox as following and then try the hdfs commands: (On port 2222) password "hadoop"

# ssh root@localhost -p 2222
root@localhost's password: hadoop

.

Which Sandbox version is it? Can you open the "http://localhost:4200" web terminal?

View solution in original post

6 REPLIES 6

avatar
Master Mentor

@Viswa

Please make sure that you do ssh to Sandbox as following and then try the hdfs commands: (On port 2222) password "hadoop"

# ssh root@localhost -p 2222
root@localhost's password: hadoop

.

Which Sandbox version is it? Can you open the "http://localhost:4200" web terminal?

avatar
Super Collaborator

i did ssh root@localhost, however the web terminal you mentioned has worked. Now am able to run hdfs commands.

Can you please help me with starting HDFS in ambari.

avatar
Master Mentor

@Viswa

What error are you getting while starting HDFS via ambari ?

avatar
Super Collaborator

@Jay SenSharma

deleted unwanted services, and rebooted. It worked, HDFS is working now. Thank you for your prompt response.

avatar
Contributor

Set your hadoop path in .bashrc.