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.

[...] I have Windows 7, 64 bit machine, installed hadoop 0.20.2 (why did I install 0.20.2). [...]
I hit the same issues as well…
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.