Hadoop java.io.IOException: Mkdirs 未能创建/some/path [英] Hadoop java.io.IOException: Mkdirs failed to create /some/path
问题描述
当我尝试运行我的工作时,出现以下异常:
When I try to run my Job I am getting the following exception:
Exception in thread "main" java.io.IOException: Mkdirs failed to create /some/path
at org.apache.hadoop.util.RunJar.ensureDirectory(RunJar.java:106)
at org.apache.hadoop.util.RunJar.main(RunJar.java:150)
/some/path 是 hadoop.tmp.dir.但是,当我在/some/path 上发出 dfs -ls cmd 时,我可以看到它存在并且数据集文件存在(在工作午餐之前复制).此外,在 hadoop 配置中正确定义了路径.任何建议将不胜感激.我使用的是 hadoop 0.21.
Where the /some/path is hadoop.tmp.dir. However when I issue the dfs -ls cmd on /some/path I can see that it exists and the dataset file is present (was copied before lunching the job). Also the path is correctly defined in hadoop configs. Any suggestions will be appreciated. I am using hadoop 0.21.
推荐答案
这是正在创建的本地磁盘上的文件(用于将您的作业 jar 解压到其中),而不是在 HDFS 中.检查您是否有权 mkdir 此目录(从命令行尝试)
This is a file on the local disk that is being created (to unpack your job jar into), not in HDFS. Check you have permissions to mkdir this directory (try it from the command line)
这篇关于Hadoop java.io.IOException: Mkdirs 未能创建/some/path的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!