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
Official Bug Reference:
https://issues.apache.org/jira/browse/HADOOP-7682
Workaround:
1, download and extract http://mirror.bit.edu.cn/apache/hadoop/common/hadoop-1.1.2/hadoop-1.1.2.tar.gz
2, modify Hadoop-1.1.2\src\core\org\apache\hadoop\fs\fileutil.java, search Failed to set permissions of path, find 689 lines, put throw new IOException changed to Log.warn
3, modify Hadoop-1.1.2\build.xml, search the autoreconf, remove the matching 6 executable= "autoreconf" exec Configuration
4, download decompression ant, the ant directory of the bin directory into the environment variable path
5, in the Cygwin command to switch to the hadoop-1.1.2 directory, execution ant
6. Replace Nutch Hadoop-core-1.0.3.jar with newly generated Hadoop-1.1.2\build\hadoop-core-1.1.3-snapshot.jar
7. For Eclipse Development, replace C:\Users\ysc\.ivy2\cache\org.apache.hadoop\hadoop-core\jars\hadoop-core-1.1.2.jar
The jar in the attachment is a modified jar for hadoop1.2.1, which can be used for Nutch1.7, and other nutch versions have not been tested.
Hadoop-core-1.2.1.jar (4 MB)
From Iteye, Author: Yangshangchuan
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/tools/