在Ubuntu 12.04上安装Hadoop 2.6.0

时间:2015-05-29 07:23:36

标签: java maven ubuntu hadoop

我从apache镜像下载了hadoop 2.6.0并尝试从源代码构建它并尝试关注link。我安装了java 1.7和maven 3.0.4。

当我开始构建hadoop时,它给了我一个错误,说hadoop-common无法下载。所以我从一个单独的pom下载它然后我遇到了。

 bash: ./configure: No such file or directory

当我寻求帮助时,我得到了上面提到的链接。当我运行命令“./configure ...”时,我陷入了试图配置protobuf的步骤,我得到了错误

[WARNING] [protoc, --version] failed with error code 1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Hadoop Main ................................ SUCCESS [1.258s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [0.430s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [1.802s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [0.446s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.228s]
[INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [1.479s]
[INFO] Apache Hadoop MiniKDC ............................. SUCCESS [1.115s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [2.244s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [0.896s]
[INFO] Apache Hadoop Common .............................. FAILURE [0.351s]
[INFO] Apache Hadoop NFS ................................. SKIPPED
[INFO] Apache Hadoop KMS ................................. SKIPPED
[INFO] Apache Hadoop Common Project ...................... SKIPPED
[INFO] Apache Hadoop HDFS ................................ SKIPPED
[INFO] Apache Hadoop HttpFS .............................. SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED
[INFO] Apache Hadoop HDFS-NFS ............................ SKIPPED
[INFO] Apache Hadoop HDFS Project ........................ SKIPPED
[INFO] hadoop-yarn ....................................... SKIPPED
[INFO] hadoop-yarn-api ................................... SKIPPED
[INFO] hadoop-yarn-common ................................ SKIPPED
[INFO] hadoop-yarn-server ................................ SKIPPED
[INFO] hadoop-yarn-server-common ......................... SKIPPED
[INFO] hadoop-yarn-server-nodemanager .................... SKIPPED
[INFO] hadoop-yarn-server-web-proxy ...................... SKIPPED
[INFO] hadoop-yarn-server-applicationhistoryservice ...... SKIPPED
[INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED
[INFO] hadoop-yarn-server-tests .......................... SKIPPED
[INFO] hadoop-yarn-client ................................ SKIPPED
[INFO] hadoop-yarn-applications .......................... SKIPPED
[INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED
[INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SKIPPED
[INFO] hadoop-yarn-site .................................. SKIPPED
[INFO] hadoop-yarn-registry .............................. SKIPPED
[INFO] hadoop-yarn-project ............................... SKIPPED
[INFO] hadoop-mapreduce-client ........................... SKIPPED
[INFO] hadoop-mapreduce-client-core ...................... SKIPPED
[INFO] hadoop-mapreduce-client-common .................... SKIPPED
[INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED
[INFO] hadoop-mapreduce-client-app ....................... SKIPPED
[INFO] hadoop-mapreduce-client-hs ........................ SKIPPED
[INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED
[INFO] hadoop-mapreduce-client-hs-plugins ................ SKIPPED
[INFO] Apache Hadoop MapReduce Examples .................. SKIPPED
[INFO] hadoop-mapreduce .................................. SKIPPED
[INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED
[INFO] Apache Hadoop Distributed Copy .................... SKIPPED
[INFO] Apache Hadoop Archives ............................ SKIPPED
[INFO] Apache Hadoop Rumen ............................... SKIPPED
[INFO] Apache Hadoop Gridmix ............................. SKIPPED
[INFO] Apache Hadoop Data Join ........................... SKIPPED
[INFO] Apache Hadoop Ant Tasks ........................... SKIPPED
[INFO] Apache Hadoop Extras .............................. SKIPPED
[INFO] Apache Hadoop Pipes ............................... SKIPPED
[INFO] Apache Hadoop OpenStack support ................... SKIPPED
[INFO] Apache Hadoop Amazon Web Services support ......... SKIPPED
[INFO] Apache Hadoop Client .............................. SKIPPED
[INFO] Apache Hadoop Mini-Cluster ........................ SKIPPED
[INFO] Apache Hadoop Scheduler Load Simulator ............ SKIPPED
[INFO] Apache Hadoop Tools Dist .......................... SKIPPED
[INFO] Apache Hadoop Tools ............................... SKIPPED
[INFO] Apache Hadoop Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.698s
[INFO] Finished at: Fri May 29 14:15:45 IST 2015
[INFO] Final Memory: 49M/342M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.6.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: protoc version is 'libprotoc 2.4.1', expected version is '2.5.0' -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hadoop-common

请建议一个更好的方法,或者请一步一步地让它足够明确,以便遵循。请帮助我。

maven运行失败,但有以下细节:

mvn package -Pdist,native -DskipTests -Dtar

答:所以我已经发布了这个问题的答案。我不会在任何地方看到我应该使用{{1}}构建它吗?我没有在link

提到的文件夹中看到任何内容

如果我试图运行上面提到的命令,那么我在java文件中看到几个问题... 请建议我需要你的帮助。

1 个答案:

答案 0 :(得分:0)

首先关注link。我运行了该帖子中其中一个成员给出的脚本。然后,每当遇到一个问题,说下载jar的超时异常时,请从某个虚拟pom中预先下载jar。

多数民众赞成...... !!!