Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Where can i run the hdfs commands

avatar

I started my HDP2.4 in vmware, & i could able to launch the ambari browser & i can see my hdfs files there..

But if i want to run the HDFS commands,, where can i run them...?

1 ACCEPTED SOLUTION

avatar
Guru

If this is sandbox, you can ssh to localhost on port 2222.

ssh root@localhost -p 2222

if you are on mac/linux or use putty if you are on windows. Default password for root is hadoop.

More details here

View solution in original post

6 REPLIES 6

avatar
Guru

If this is sandbox, you can ssh to localhost on port 2222.

ssh root@localhost -p 2222

if you are on mac/linux or use putty if you are on windows. Default password for root is hadoop.

More details here

avatar

Thanks Ravi....that sounds good & it worked for me with putty when i run hdp2.4 on vmware. but when i tried with putty when i started my hdp2.4 in virtualbox it's failing.

I mean, the ip for virtual box by default is showing as 127.0.0.1 and when i tried putty with this ip, its not connecting.

May i know the reason why..?

avatar
Guru

I can run sandbox running on virtualbox with 2222. No reason to think of why its working from vmware and not virtualbox. Both use NAT.

avatar

yes..Ravi,, You are absolutely correct.. Here we go.

When I open putty,

1) If I'm running HDP2.4 in VMware,

putty is woking with the HDP given ip & port as 22(Bydefault).

but , if you give 2222 in putty for hdp2.4 it will not work.

2) If I'm running HDP2.4 in Virtualbox,

putty is working with 127.0.0.1 ip & port as 2222(Need to give explicitly),

but if you give 22 in putty, it will not work.

Anywork, got to know exactly with your info,,, Thanks.

avatar
Super Collaborator

Alternatively, if you have zeppelin, you can run your bash / hadoop commands over there too..

example:

%sh
whoami
%sh
hadoop fs -ls /user/root/ 

avatar
Super Collaborator

if it is sandbox, you must be having the zeppelin in the same section where you will be seeing Hive views, etc...