CentOS 编译hadoop 1.0.4
来源:互联网 发布:usb转网络接口驱动 编辑:程序博客网 时间:2024/04/29 11:43
1. 安装ant
从http://ant.apache.org/下载最新的ant,将其解压缩,然后安装README所述的方法即可完成安装
2. 在hadoop目录下,执行ant -file build.xml进行编译,提示:
compile-rcc-compiler:
[javac] /home/hadoop-1.0.4/build.xml:463: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
compile-core-classes:
[javac] /home/hadoop-1.0.4/build.xml:487: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
compile-hdfs-classes:
[javac] /home/hadoop-1.0.4/build.xml:576: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to /home/hadoop-1.0.4/build/classes
解决方法是进入build.xml文件,在相应的行加入:
includeantruntime="false"
3. 之后再执行ant -file build.xml,会提示:
create-native-configure:
[exec] configure.ac:47: error: possibly undefined macro: AC_PROG_LIBTOOL
[exec] If this token and others are legitimate, please use m4_pattern_allow.
[exec] See the Autoconf documentation.
[exec] autoreconf: /usr/bin/autoconf failed with exit status: 1
解决方法:
yum install libtool
4. 编译后,要将hadoop/build目录下的内容拷贝到集群的各个结点上,否则在mp的过程中,会提示如下错误:
2014-03-04 17:11:22,593 ERROR org.apache.hadoop.mapred.TaskTracker: Shutting down. Incompatible buildVersion.
- CentOS 编译hadoop 1.0.4
- CentOS编译Hadoop 2.2.0 Pass 总结
- CentOS 编译Hadoop 2.6 32位
- centos 7编译hadoop 2.7.3
- Hadoop在CentOS 6.6-x86_64上编译
- Hadoop源码编译-hadoop-2.0.3-alpha-Linux-CentOS
- hadoop学习(一)-- centos 64位编译安装hadoop
- Windows 编译 hadoop eclipse plugin 1.0.4
- hadoop-1.0.4编译eclipse plugin插件
- Windows 编译 hadoop eclipse plugin 1.0.4
- hadoop-1.0.4 eclipse-plugin插件编译
- hadoop 2.6.4 编译
- CentOS Apache2.4 编译
- Centos下hadoop-1.1.2eclipse插件Ant编译
- CentOS 6.4 64位 源码编译 hadoop 2.2.0
- CentOS 6.5 x86_64 Hadoop 2.2.0 eclipse plugs编译
- 在CentOS 64 位系统上编译Hadoop 2.2.0
- 64位CentOS上编译 Hadoop 2.2.0
- onInterceptTouchEvent和onTouchEvent使用心得
- UVA11402--Ahoy, Pirates!--线段树
- Linux系统性能检测
- 当微信遇上众筹——颠覆性创业背后的思考
- 交叉编译live555MediaServer流媒体服务器RTP/RTCP, RTSP, SIP 【转】
- CentOS 编译hadoop 1.0.4
- java方法
- 有关线性代数的Matlab代码笔记(6)——LU分解(没有行变换)
- JDK5.0新特性:泛型浅析、通配符(?)
- 揭秘微信竞价营销的本质
- Qt之中文显示(QMessageBox、QLineEdit右键菜单等)
- Eclipse 中Tomcat debug启动报错,启动不了
- Android系统性能调优工具介绍
- 手把手教你做网站的步骤