Support Questions

Find answers, ask questions, and share your expertise

I am not able see my hdfs file directory in SSH console.

avatar

I see all hdfs file in ambari, but i can not able see those file SSH console like /user/maria_dev/ .If their is any access mode but I am root user then still problem , so please me help me out,how can i solved it.

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Mahendra Malpute

Are you doing ssh to the sandbox on the correct port 2222 ?

# ssh root@localhost -p 2222

When you see those HDFS files in ambari UI, (I guess you mean FileView). Which user is logged in to Ambari FileView? ("admin" user or "maria_dev") user?

.

Can you please list the permission of directory:

Can you please share the output of the following directory?
# su - hdfs -c "hdfs dfs -ls /user"
# su - hdfs -c "hdfs dfs -ls /user/maria_dev"

.

As you mentioned that "i can not able see those file SSH console like /user/maria_dev/ ", Do you see any error/exception or no output?

Can you please share the screenshot of the Ambari UI where you see the contents (so that we can check the logged in user and the output of the directory).

Also the terminal output of the hdfs command shell.

.

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@Mahendra Malpute

Are you doing ssh to the sandbox on the correct port 2222 ?

# ssh root@localhost -p 2222

When you see those HDFS files in ambari UI, (I guess you mean FileView). Which user is logged in to Ambari FileView? ("admin" user or "maria_dev") user?

.

Can you please list the permission of directory:

Can you please share the output of the following directory?
# su - hdfs -c "hdfs dfs -ls /user"
# su - hdfs -c "hdfs dfs -ls /user/maria_dev"

.

As you mentioned that "i can not able see those file SSH console like /user/maria_dev/ ", Do you see any error/exception or no output?

Can you please share the screenshot of the Ambari UI where you see the contents (so that we can check the logged in user and the output of the directory).

Also the terminal output of the hdfs command shell.

.

avatar

Thanks Jay... Now I am able to seeing this file.

But i am trying to list my file...but showing 'no such file or directory'.

# su - hdfs -c "hdfs dfs -ls"

so please help me for that why not showing their list.

avatar
Master Mentor

@Mahendra Malpute'

In your command the path is missing.

Your command:

# su - hdfs -c "hdfs dfs -ls"

.

Correct command:

# su - hdfs -c "hdfs dfs -ls  /user/maria_dev"

.