Recently in learning Hadoop, share a 64-bit compilation bug.
Ubuntu 14.04
JDK 1.8
Maven 3.5.4
Hadoop 2.9.1
Protocolbuffer 2.5.0
CMake 3.6
Ubuntu 14.04 under hadoop2.9.1 64-bit compilation
The following part is a copy of the/java in building.
* Oracle JDK 1.7 (preferred)
$ sudo apt-get purge openjdk*
$ sudo apt-get install Software-properties-common
$ sudo add-apt-repository Ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install Oracle-java7-installer//I use the JAVA8
* Maven
$ sudo apt-get-y install maven
* Native Libraries
$ sudo apt-get-y install build-essential autoconf automake libtool cmake zlib1g-dev pkg-config Libssl-dev
* Protocolbuffer 2.5.0 (required)
$ sudo apt-get-y install Protobuf-compiler
Optional Packages:
* Snappy Compression
$ sudo apt-get install snappy Libsnappy-dev
* BZIP2
$ sudo apt-get install bzip2 Libbz2-dev
* Jansson (C Library for JSON)
$ sudo apt-get install Libjansson-dev
* Linux FUSE
$ sudo apt-get install fuse Libfuse-dev
Then execute under the Hadoop source package
$ MVN Package-pdist,native,docs,src-dskiptests-dtar
Here is the error message .....
Downloading from nexus-aliyun:http://maven.aliyun.com/nexus/content/groups/public/org/apache/felix/ Maven-bundle-plugin/2.5.0/maven-bundle-plugin-2.5.0.pom
[WARNING] Failed to create parent directories for tracking file/usr/local/maven/repo/org/apache/felix/maven-bundle-plugin/2.5.0 /maven-bundle-plugin-2.5.0.pom.lastupdated
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build Extension:plugin org.apache.felix:maven-bundle-plugin:2.5.0 or one of its dependencies could not being r Esolved:failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:2.5.0 @
@
[ERROR] The build could not read 1 project---[Help 1]
[ERROR]
[ERROR] The Project org.apache.hadoop:hadoop-main:2.9.1 (/home/hrz/desktop/hadoop-2.9.1-src/pom.xml) has 1 error
[ERROR] Unresolveable build Extension:plugin org.apache.felix:maven-bundle-plugin:2.5.0 or one of its dependencies could not being r Esolved:failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:2.5.0:could not transfer Artifa CT org.apache.felix:maven-bundle-plugin:pom:2.5.0 from/to Nexus-aliyun (http://maven.aliyun.com/nexus/content/ Groups/public):/usr/local/maven/repo/org/apache/felix/maven-bundle-plugin/2.5.0/ Maven-bundle-plugin-2.5.0.pom.part.lock (without that file or directory), [Help 2]
[ERROR]
[ERROR] The full stack trace of the errors, re-run Maven with THE-E switch.
[ERROR] Re-run Maven using The-x switch to enable full debug logging.
[ERROR]
[ERROR] For more information on the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] Http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
Finally, install Apatch ant after problem solving. Because the source package in the building file did not see Ant, so went a lot of detours. Here to share to everyone!!!!
Note: I personally understand that ant should be similar to CMake, but I'm sure my cmake is installed successfully. As for why Ant is still needed, I am not very clear, and I hope the great God to doubt!!!
Ubuntu 14.04 under hadoop2.9.1 64-bit compilation