尝试按照此站点配置 Eclipse 和 Hadoop 。
我成功运行:
git clone git://git.apache.org/hadoop-common.git
现在我失败了:
mvn install -DskipTests
[INFO] Apache Hadoop Main ................................ SUCCESS [6.688s]
[INFO] Apache Hadoop Project POM ......................... FAILURE [1.548s]
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (create-testdirs) on project hadoop-project: Error executing ant tasks: /usr/local/hadoop/hadoop-common/hadoop-project/target/antrun/build-main.xml (No such file or directory) -> [Help 1]
原因是我在.../hadoop-project
. 我的 /hadoop-project 文件夹仅包含一个“src”文件夹,仅此而已。
所以看起来该文件夹没有建立。有任何想法吗?这里是环境:
Ubuntu 12.1
Hadoop 1.0.4
Maven 3.0.4