Hadoop java.io.IOException: Mkdirs failed to create /some/path

hadoop, hdfs, ioexception

Solution

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)

Problem

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.

Original source