0

我正在使用 Eclipse 构建 hadoop 插件 hadoop 版本是 1.0.4 当我使用 ant builder 时,出现如下错误

compile:
 [echo] contrib: eclipse-plugin
[javac] /home/shijieru/Downloads/HadoopInstall/hadoop-1.0.4/src/contrib/eclipse-plugin/build.xml:61: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 45 source files to /home/shijieru/Downloads/HadoopInstall/hadoop-1.0.4/build/contrib/eclipse-plugin/classes
[javac] /home/shijieru/Downloads/HadoopInstall/hadoop-1.0.4/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/Activator.java:28: error: error while writing Activator: could not create parent directories
[javac] public class Activator extends AbstractUIPlugin {
[javac]        ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
/home/shijieru/Downloads/HadoopInstall/hadoop-1.0.4/src/contrib/eclipse-plugin/build.xml:61: Compile failed; see the compiler error output for details.

Total time: 3 seconds

谁能告诉我这些问题的可能原因是什么?谢谢

4

1 回答 1

0

看来您的问题并非特定于 hadoop,但目录权限 - javac 输出“无法创建父目录” - 确保您对正在编译的 bin 目录具有适当的权限。

(基于具有相同错误消息的类似问题:无法编译 WordCount.java

于 2012-11-14T01:09:18.487 回答