In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to compile hadoop 2.7 on CentOS, the article is very detailed, has a certain reference value, interested friends must read it!
Official website download hadoop execution run alarm:
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
put: `./ in': No such file or directory
Native-hadoop under lib is mainly 32-bit, so here we compile hadoop on 64-bit systems ourselves.
Environmental preparation:
1 Download hadoop src Source Package
2 Required software: java, svn, autoconf, automake, libtool, ncurses-devel, openssl-devel, gcc, lzo-devel, zlib-devel, znt, maven, protobuf, cmake
yum -y install autoconf automake libtool ncurses-devel openssl-devel gcc lzo-devel, zlib-devel cmake
3 Install JDK
Download jdk bin package and extract it
Add jdk environment variable
Add to/etc/profile file
## JAVA
export JAVA_HOME=/usr/local/java/jdk
export CLASSPATH=.:$ JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
## PATH
export PATH=$JAVA_HOME/bin
Let overload environment variables. /etc/profile
4 maven installation
Download maven and extract it, then add its bin path to the environment variable
mvn -version
5 protobuf installation
Go online and search for protobuf-2.5.0.tar.gz, download and extract,
./ configure; make; make install
protoc --version
6 ANT Installation
apache official website download ANT bin package decompression, add its bin path to the environment variable
7 Compile hadoop
mvn package -Pdist,native,docs -DskipTests -Dtar
This takes more than an hour or more and requires networking to download dependency packages
The last file is in hadoop-2.7.2-src/hadoop-dist/target
You can deploy it directly with the hadoop-2.7.2 directory, and there is also a hadoop-2.7.2.tar.gz package
The above is all the content of this article "How to compile hadoop 2.7 on CentOS", thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.