如何在ubuntu中安装Hadoop

时间:2012-06-01 01:14:47

标签: ubuntu hadoop install

我尝试在ubuntu桌面12.04中安装Hoop。我已经安装了hadoop-1.0.2。我的安装遵循http://cloudera.github.com/hoop/docs/latest/ServerSetup.html 我安装了maven 3.0.4,git the hoop。但是,当我这样做时,问题就出现了,

hoop $ mvn clean package site assembly:single
问题是:

[FATAL] Non-parseable POM /home/pc/.m2/repository/com/sun/jersey/jersey-project/1.4/jersey-project-1.4.pom: end tag name </body> must match start tag name <hr> from line 5 (position: TEXT seen ...</center>\r\n</body>... @6:8)  @ /home/pc/.m2/repository/com/sun/jersey/jersey-project/1.4/jersey-project-1.4.pom, line 6, column 8

[ERROR] /home/pc/hoop/hoop-server/src/main/java/com/cloudera/hoop/Hoop.java:[222,23] error: cannot find symbol
[ERROR] class Hoop

[WARNING] Unable to create Maven project from repository.
org.apache.maven.project.InvalidProjectModelException: Some problems were encountered while processing the POMs:
[ERROR] Invalid packaging for parent POM [unknown-group-id]:[unknown-artifact-id]:   [unknown-version], must be "pom" but is "jar" @ [unknown-group-id]:[unknown-artifact-id]:[unknown-version]
[ERROR] 'groupId' is missing. @ line 44, column 99
[ERROR] 'version' is missing. @ line 44, column 99


[INFO] Hoop Project POM .................................. SUCCESS [7.774s]
[INFO] Hoop TestNG ....................................... SUCCESS [12:16.761s]
[INFO] Hoop Server ....................................... FAILURE [1.161s]
[INFO] Hoop WebApp ....................................... SKIPPED
[INFO] Hoop Client ....................................... SKIPPED
[INFO] Hoop Docs ......................................... SKIPPED
[INFO] Hoop Distro ....................................... SKIPPED
[INFO] Hoop Main ......................................... SKIPPED

我该怎么办?

我将maven更改为maven2,然后我做了

rm -rf ~/.m2/repository/com/sun/jersey
rm -rf ~/.m2/repository/org/glassfish/packager
rm -rf ~/.m2/repository/jersey

Daniel Baktiar说。但现在有新问题

[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Hoop Project POM
[INFO]   Hoop TestNG
[INFO]   Hoop Server
[INFO]   Hoop WebApp
[INFO]   Hoop Client
[INFO]   Hoop Docs
[INFO]   Hoop Distro
[INFO]   Hoop Main
[INFO] ------------------------------------------------------------------------
[INFO] Building Hoop Project POM
[INFO]    task-segment: [clean, package, site, assembly:single]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: clean}]
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with     message:
Detected Maven Version: 2.2.1 is not in the allowed range [3.0.0,).
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Jun 01 15:51:06 CST 2012
[INFO] Final Memory: 13M/141M
[INFO] ------------------------------------------------------------------------

我现在该怎么办?

2 个答案:

答案 0 :(得分:0)

由于代理中的间歇性中断(nginx),您的本地Maven 2存储库被搞砸了。由于该文件不是有效的.pom文件,因此Maven 2无法继续。

你应该做的是首先删除它。

rm -rf ~/.m2/repository/com/sun/jersey
rm -rf ~/.m2/repository/org/glassfish/packager
rm -rf ~/.m2/repository/jersey

之后,再次运行Maven mvn命令。

答案 1 :(得分:0)

maven 2.0在环安装中不起作用。关于maven 3.0.4中的问题,您可以尝试使用官方文件更新pom.xml。只需在谷歌搜索jersey-project-1.4.pom。