How to compile 64-bit hadoop2.2.0 by Centos6.5
This article introduces the knowledge of "how Centos6.5 compiles 64-bit hadoop2.2.0". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
You can modify the maven configuration conf/setting.xml and configure the image library:
Osc-maven-repo * osc-maven-repo http://maven.oschina.net/content/groups/public/
Configure jdk, local repository, plug-in repository, etc.:
Jdk-1.7 1.7 local-repo local-repo http://maven.oschina.net/content/groups/public/ true false osc-maven-repo Osc-maven-repo http://maven.oschina.net/content/groups/public/ true false
Compile the protobuf environment: yum gcc gcc-c++ cmake ncurses-devel openssl-devel
Protobuf: https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
Standard compilation installation:. / configure & & make & & make install
Compile hadoop:
Mvn package-Pdist,native-DskipTests-Dtar
Most likely there will be network problems, memory overflow (1G is enough), compilation completed:
Call it a day.
That's all for "how Centos6.5 compiles 64-bit hadoop2.2.0". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!