Prerequisites
Install JDK
How to Install Oracle Java7 in Ubuntu Server 14.04 LTS
Install Maven
Install Maven on Ubuntu
Check if the ProtocolBuffers already installed?
protoc --version
Install ProtocolBuffers
sudo apt-get install protobuf-compiler
Check the version
protoc --version
if the version does not display try following command.
sudo ldconfig
protoc --version
I have downloaded the "hadoop-trunk.zip" from Git Hub.
if you want after the extract copy the hadoop-trunk directory to your project working area.
sudo cp -r hadoop-trunk /home/mahesh/projects/hadoop/hadoop-trunk
Change the ownership of the hadoop-trunk direcoty to you. This should be done with '-R' (Recursive)
sudo chown -R mahesh hadoop-trunk
Compile Hadoop
mvn install -DskipTests
If everything goes well you should see "BUILD SUCCESSFUL" message. Build would take a while to complete depending on you Internet connection speed, since Maven will download all the required artifacts in the first build.
mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
No comments:
Post a Comment