Solution to 0700 problems during eclipse connection to remote hadoop Cluster Development

Source: Internet
Author: User
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

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.