Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

hdfs user and commands

Solved Go to solution
Highlighted

hdfs user and commands

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

Accepted Solutions

Re: hdfs user and commands

Super 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

Re: hdfs user and commands

Super 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

Highlighted

Re: hdfs user and commands

Super Mentor
Highlighted

Re: hdfs user and commands

Super 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.

Highlighted

Re: hdfs user and commands

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.

Highlighted

Re: hdfs user and commands

Perfect it works! Thank you a lot.

Don't have an account?
Coming from Hortonworks? Activate your account here