Prash's Blog

java.io.IOException: Failed to set permissions of path: file:/tmp/hadoop-pjain/mapred/staging/pjain1500477637/.staging to 0700 February 1, 2012

Filed under: Hadoop — prazjain @ 10:50 am
Tags:

Ran into this exception when installing hadoop stable version 0.20.203.0 on local dev workstation and running sample examples.

Truncated Exception :


java.io.IOException: Failed to set permissions of path: file:/tmp/hadoop-pjain/mapred/staging/pjain1500477637/.staging to 0700
 at org.apache.hadoop.fs.RawLocalFileSystem.checkReturnValue(RawLocalFileSystem.java:525)
 at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:499)
 at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
 at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
 at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:116)
 at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:797)
 ...
 at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

After banging my head in resolving this, I found out this is a known issue with this (stable!) release.

So I reverted to stable version 0.20.2 and ran the samples. And it worked fine.

Hope that helps.

Advertisements
 

3 Responses to “java.io.IOException: Failed to set permissions of path: file:/tmp/hadoop-pjain/mapred/staging/pjain1500477637/.staging to 0700”

  1. […] I have Windows 7, 64 bit machine, installed hadoop 0.20.2 (why did I install 0.20.2). […]

  2. Michael Bevilacqua Says:

    I hit the same issues as well…

  3. Tian Zhang Says:

    Anyone knows how to fix this issue or if hadoop 1.0.0 has a patch with the fix?
    I can’t go back to 0.20.2 and we need to move forward to 1.0.0. Thanks.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s