Error message: exception in thread "Main" Java. io. ioexception: failed to set permissions of path: \ TMP \ hadoop-ysc \ mapred \ staging \ ysc-2036315919 \. staging to 0700 solution (verified by the author in hadoop1.2.0 + jdk1.7): 0. install JDK and ant, and configure environment variables. Article : Repeated static void checkreturnvalue (Boolean RV, file P, fspermission permission) throws ioexception {If (! RV) {Throw new ioexception ("failed to set permissions of path:" + P + "to" + String. format ("% 04o", permission. toshort ();} comment out the exception throwing operation or Set Throw new ioexception Change Log. Warn 3. Go to the $ hadoop_home/src directory and modify the saveversion. Sh file because there is a problem with the package-info.java generated by the original saveversion. Sh. The correct content is: User = 'whoam' # change it to a fixed value here, for example, user = jialin3, modify $ hadoop_home \ build. XML, search for autoreconf, and remove the matching exec configurations of six executable = "autoreconf", such as: <exec executable = "autoreconf" dir = "$ {C ++. task-controller.src} "searchpath =" yes "failonerror =" yes "> <Arg value ="-I "/> </exec> 6 in total, delete the language block 4. Modify the \ build under the hadoop installation directory. XML specifies the Java version <property name = "javac. version "value =" 1.6 "/> If 1.7 is changed to 1.75, in the command line switch to $ hadoop_home, execute ant6, with the new $ hadoop_home \ build \ hadoop-core-1. *. *-snapshot. jar replaces the hadoop-core -*. *. *. jar
I have compiled a,: http://download.csdn.net/detail/shan9liang/5946607