Hadoop java.io.IOException:Mkdirs无法创建/ some /路径 [英] Hadoop java.io.IOException: Mkdirs failed to create /some/path

查看:1403
本文介绍了Hadoop java.io.IOException:Mkdirs无法创建/ some /路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行我的Job时,出现以下异常:

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)



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 /路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆