Support Questions

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

hdfs user and commands

avatar

Hello guys,

I am working with Hortonworks sandbox 2.6 at the first time. I am trying to copy data from local machine to

HDFS. First I tried the command su hdfs but got a message > user hdfs does not exist.

Second i would like to run HIVE in command line but the command hive is not working (hive:command not found).

Could you guys help me with these issues?

Thank you

1 ACCEPTED SOLUTION

avatar
Master Mentor

@enzo EL

Please make sure that you have logged in to your Sandbox on SSH port 2222 only. Else those commands will not work.

#  ssh root@127.0.0.1 -p 2222
Enter Password:  hadoop

.

The try to execute those commands:

[root@sandbox ~]# su - hdfs
[hdfs@sandbox ~]$ hdfs dfs -put /var/log/messages /tmp

.

Other option will be to use the WebTerminal feature to access the terminal using Browser using the following URL.

http://localhost:4200

.

View solution in original post

5 REPLIES 5

avatar
Master Mentor

@enzo EL

Please make sure that you have logged in to your Sandbox on SSH port 2222 only. Else those commands will not work.

#  ssh root@127.0.0.1 -p 2222
Enter Password:  hadoop

.

The try to execute those commands:

[root@sandbox ~]# su - hdfs
[hdfs@sandbox ~]$ hdfs dfs -put /var/log/messages /tmp

.

Other option will be to use the WebTerminal feature to access the terminal using Browser using the following URL.

http://localhost:4200

.

avatar
Master Mentor

avatar
Master Mentor

@enzo EL

Good to know that your issue is resolved, It will be also great if you can mark this HCC thread as Answered by clicking on the "Accept" Button on the correct answer. That way other HCC users can quickly find the solution when they encounter the same issue.

avatar

could you give me your skype or email conctact? I would like to ask you for some more information....I dont know if I can send a meessage here.

avatar

Perfect it works! Thank you a lot.