Hadoop 源码编译 step by step 最简洁的步骤 (2)

配置环境变量

export ANT_HOME=/root/apache-ant-1.9.4 export PATH=.:$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin:$ANT_HOME/bin

生效以及测试

1 source /etc/profile 2 ant -version


最后安装成功 70 分钟:

[INFO] hadoop-mapreduce ................................... SUCCESS [  4.775 s]
[INFO] Apache Hadoop MapReduce Streaming .................. SUCCESS [ 20.396 s]
[INFO] Apache Hadoop Distributed Copy ..................... SUCCESS [02:05 min]
[INFO] Apache Hadoop Archives ............................. SUCCESS [ 14.173 s]
[INFO] Apache Hadoop Rumen ................................ SUCCESS [ 33.443 s]
[INFO] Apache Hadoop Gridmix .............................. SUCCESS [ 27.265 s]
[INFO] Apache Hadoop Data Join ............................ SUCCESS [ 11.006 s]
[INFO] Apache Hadoop Ant Tasks ............................ SUCCESS [  7.516 s]
[INFO] Apache Hadoop Extras ............................... SUCCESS [  8.966 s]
[INFO] Apache Hadoop Pipes ................................ SUCCESS [ 11.747 s]
[INFO] Apache Hadoop OpenStack support .................... SUCCESS [ 15.736 s]
[INFO] Apache Hadoop Amazon Web Services support .......... SUCCESS [09:39 min]
[INFO] Apache Hadoop Client ............................... SUCCESS [  9.931 s]
[INFO] Apache Hadoop Mini-Cluster ......................... SUCCESS [  1.846 s]
[INFO] Apache Hadoop Scheduler Load Simulator ............. SUCCESS [ 10.474 s]
[INFO] Apache Hadoop Tools Dist ........................... SUCCESS [ 17.429 s]
[INFO] Apache Hadoop Tools ................................ SUCCESS [  0.076 s]
[INFO] Apache Hadoop Distribution ......................... SUCCESS [01:24 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:13 h
[INFO] Finished at: 2016-10-13T20:36:32+08:00
[INFO] Final Memory: 115M/487M
[INFO] ------------------------------------------------------------------------
[root@bigdatahadoop hadoop-2.6.5-src]#


内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzpdgy.html