标签:style blog http os io 文件 ar 问题
1、在Ubuntu下创建hadoop用户组和用户
2、在Ubuntu下安装JDK(可以在官网下载linux包然后解压安装)
3、hadoop下载:http://www.apache.org/dyn/closer.cgi/hadoop/common/
因为64位ubuntu需要编译源文件:故下载hadoop-2.5.0-src.tar.gz
(1)编译时需要安装protobuf-2.5.0,解压下载的protobuf-2.5.0.tar.gz
,进入protobuf-2.5.0目录,执行下面命令
./configure --prefix=/usr
sudo make
sudo make check
sudo make install
验证:protoc --version
(2)安装Maven。
(3)编译hadoop
解压hadoop-2.5.0-src.tar.gz,进入hadoop-2.5.0-src,执行下面命令
mvn package -Pdist,native -DskipTests -Dtar
参考:http://www.ercoppa.org/Linux-Compile-Hadoop-220-fix-Unable-to-load-native-hadoop-library.htm
可能出现的问题:http://www.cnblogs.com/shenh062326/p/3562491.html
编译好的文件在hadoop-dist/target中
4、安装配置
参考: http://www.cnblogs.com/end/archive/2012/08/13/2636645.html
http://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html
https://www.digitalocean.com/community/tutorials/how-to-install-hadoop-on-ubuntu-13-10
安装完跑一下:jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.5.0.jar grep input output ‘dfs[a-z.]+‘
页面查看:
http://localhost:50070/dfshealth.html#tab-overview
http://localhost:8088/cluster
64位ubuntu下单节点安裝配置hadoop2.5.0,布布扣,bubuko.com
标签:style blog http os io 文件 ar 问题
原文地址:http://www.cnblogs.com/spacewalk/p/3915235.html