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

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

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
  • So what I have to type? – dhruv bhardwaj Oct 27 '15 at 17:43
  • 1
    Use sudo mkdir -p /hadoop-data/hadoopmaster/hdfs/namenode (note the -p) to create the missing parent directories, too. – Florian Diesch Oct 27 '15 at 17:48
  • Ok................................. – dhruv bhardwaj Oct 27 '15 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.