# sudo mkdir /hadoop-data/hadoopmaster/hdfs/namenode
mkdir: cannot create directory ‘/hadoop-data/hadoopmaster/hdfs/namenode’: No such file or directory
答案1
以下某个目录不存在:
/hadoop-data/hadoopmaster/hdfs/
/hadoop-data/hadoopmaster/
/hadoop-data/
为了确保创建所有必需的目录,请添加选项-p
,以p
根据需要创建目录:
sudo mkdir -p /hadoop-data/hadoopmaster/hdfs/namenode