简体   繁体   English

Hadoop 2.2.0源代码打包

[英]Hadoop 2.2.0 source code packaging

My Aim is "To make changes in scheduling of Hadoop 2.2.0 ". 我的目标是“在Hadoop 2.2.0的调度中进行更改”。 For importing hadoop src code and compile it i followed this link . 为了导入hadoop src代码并进行编译,我遵循了此链接
command given in that link was successfully done om my ubuntu 12.4. 该链接中给出的命令已在我的ubuntu 12.4中成功完成。 After making changes now i want to package it(According to maven). 进行更改后,现在我想将其打包(根据maven)。

I followed this command: "mvn package -Pdist,native,docs -DskipTests -Dtar" but i am getting following error: 我遵循以下命令:“ mvn软件包-Pdist,native,docs -DskipTests -Dtar”,但出现以下错误:

*[ERROR] Error resolving version for plugin 'org.apache.maven.plugins:maven-javadoc-plugin' from the repositories [local (/home/pict/.m2/repository), central (http://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 1] * [错误]从存储库[本地(/home/pict/.m2/repository),中央(http://repo.maven),为插件'org.apache.maven.plugins:maven-javadoc-plugin'解析版本错误.apache.org / maven2)]:在任何插件存储库中都找不到插件-> [帮助1]

[ERROR] [错误]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。

[ERROR] Re-run Maven using the -X switch to enable full debug logging. [错误]使用-X开关重新运行Maven以启用完整的调试日志记录。

[ERROR] [错误]

[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR]有关错误和可能的解决方案的详细信息,请阅读以下文章:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException * [错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException *

According to error i think "given plugin is not in local repository". 根据错误,我认为“给定的插件不在本地存储库中”。 But i searched manually in given location... it is available there. 但是我在给定的位置手动搜索...在那里可以找到它。 Then what may be the problem.....? 那可能是什么问题.....?

Please help me to resolve this query 请帮助我解决此查询

I got the point......... i haven't built(compiled) native library and in command 我明白了.........我还没有建立(编译)本机库和命令

"mvn package -Pdist,native,docs -DskipTests -Dtar" i am saying to package it. 我说“ mvn包-Pdist,native,docs -DskipTests -Dtar”将其打包。

It is not necessary to build(compile) native libraries by your own. 不必自己构建(编译)本机库。 So there is command to package source code without native library and documentation ie "mvn package -Pdist -DskipTests -Dtar" which ran successfully without errors. 因此,有一个命令可以打包没有原始库和文档的源代码,即“ mvn软件包-Pdist -DskipTests -Dtar”,可以成功运行且没有错误。

With this command we can create "hadoop distribution" from source code 使用此命令,我们可以从源代码创建“ hadoop分发”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM