0

I've been starting NameNode and DataNode, but when I try to use HDFS command to make a directory(in any place), it doesn't work.

Here is my command:

./hdfs dfs  -mkdir -p /usr/master/datas

and I also trying to change the format of my path:

./hdfs dfs  -mkdir -p "/usr/master/datas"

but I get same result.

I'm just starting to learn big-data. Can anyone tell me how to fix this issue and how debug the issue?

2
  • 2
    any message when you run those command Commented May 9, 2018 at 16:54
  • An error message would help. Did you look at the namenode logs too? Commented May 9, 2018 at 18:03

1 Answer 1

1

/usr doesn't exist on HDFS. That's a Unix directory.

The user directory in HDFS is /user.

Plus, you need to be an HDFS superuser to create HDFS folders under the root path, or at least folders not owned by the current user.

Sign up to request clarification or add additional context in comments.

1 Comment

I checked, I can see the directory in HDFS web page, Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.