使用eclipse构建hadoop插件

时间:2012-11-13 22:11:34

标签: eclipse-plugin hadoop-plugins

我正在使用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

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

1 个答案:

答案 0 :(得分:0)

似乎你的问题不是特定于hadoop,但目录权限 - '无法创建父目录'由javac输出 - 确保你对正在编译的bin目录有适当的权限。

(基于具有相同错误消息的类似问题:Cannot Compile WordCount.java