Search code examples
macoshadoophdfshadoop2

Unable to create a directory on hdfs on mac os


I am getting the below error message when I try to create a directory on hdfs.
I installed all the required softwares ssh, Java and set all the environment variables.
Not really sure where am I going wrong.

Could anyone share your thoughts on this? Thanks.

Command used:

bin/hdfs dfs -mkdir /Users/ravitejavutukuri/input

Error:

18/06/30 22:56:11 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
mkdir: `/Users/ravitejavutukuri/input': No such file or directory

Currently I installed Hadoop 2.9.1 and I'm trying to experiment with pseudo-distributed-mode.


Solution

  • Try this command. It will create all the directories in the path.

    bin/hdfs dfs -mkdir -p /Users/ravitejavutukuri/input