我通过 ssh 与安装了 hadoop-2.0.0-mr1-cdh4.0.0 版本的 hadoop 集群连接。有没有办法构建 mahout 0.7 以便它可以与这个版本的 hadoop 兼容?
编辑:由于肖恩的回答,我添加了一些东西
我已经更改了 pom.xml 文件,但我得到了这个:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
missing:
1) org.apache.hadoop:hadoop-core:jar:2.0.0-mr1-cdh4.0.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.hadoop -DartifactId=hadoop-core
-Dversion=2.0.0-mr1-cdh4.0.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.hadoop -DartifactId=hadoop-core
-Dversion=2.0.0-mr1-cdh4.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId= [id]
Path to dependency:
1) org.apache.mahout:mahout-core:jar:0.7
2) org.apache.hadoop:hadoop-core:jar:2.0.0-mr1-cdh4.0.0
1 required artifact is missing.
for artifact:
org.apache.mahout:mahout-core:jar:0.7
from the specified remote repositories:
apache.snapshots (http://repository.apache.org/snapshots),
central (http://repo1.maven.org/maven2)
所以我已经下载了jar文件并成功构建了它。如何从 pom.xml 中排除 hadoop 以构建其他依赖项?