6
# sudo mkdir /hadoop-data/hadoopmaster/hdfs/namenode

mkdir: cannot create directory ‘/hadoop-data/hadoopmaster/hdfs/namenode’: No such file or directory

1 Answer 1

9

One of the following directories does not exist:

/hadoop-data/hadoopmaster/hdfs/
/hadoop-data/hadoopmaster/
/hadoop-data/

To ensure that all of the required directories are created, add the -p option, to make parent directories as needed:

sudo mkdir -p /hadoop-data/hadoopmaster/hdfs/namenode
3
  • So what I have to type? Oct 27, 2015 at 17:43
  • 1
    Use sudo mkdir -p /hadoop-data/hadoopmaster/hdfs/namenode (note the -p) to create the missing parent directories, too. Oct 27, 2015 at 17:48
  • Ok................................. Oct 27, 2015 at 17:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .