We install Giraph, middleware for graph analysis on Hadoop, on CentOS 5.5.
Installing Maven
On the page below, follow the [Mirrors] link for the latest version of Maven in the [Binary tar.gz] row of the table, and copy the download link.
http://maven.apache.org/download.html
Download it with wget, specifying the link as follows.
wget http://ftp.kddilabs.jp/infosystems/apache//maven/binaries/apache-maven-3.0.3-bin.tar.gz
Next, extract and place it.
# tar xvzf apache-maven-3.0.3-bin.tar.gz
# mv apache-maven-3.0.3 /usr/share
# ln -s /usr/share/apache-maven-3.0.3 /usr/share/maven
Edit /etc/profile and add the following.
export M2_HOME=/usr/share/maven export M2=$M2_HOME/bin export PATH=$M2:$PATH
Installing Subversion and downloading Giraph
# yum install subversion
As the mapred user:
$ svn checkout https://svn.apache.org/repos/asf/incubator/giraph/trunk
$ cd trunk
$ mvn compile
The Giraph jar file is created in the ~/trunk/target folder.
Testing Giraph
$ hadoop jar target/giraph-0.70-jar-with-dependencies.jar org.apache.giraph.benchmark.PageRankBenchmark -e 1 -s 3 -v -V 500 -w 5
Compiling and running your own Giraph program
Write your own Java source code as a class in Giraph’s examples package.
package org.apache.giraph.examples;
Place the source code under
~/trunk/src/main/java/org/apache/giraph/examples.
In ~/trunk, build with
$ mvn compile
Run it as follows.
$ hadoop jar target/giraph-0.70-jar-with-dependencies.jar org.apache.giraph.examples.[class name] options
By the way, when editing Hadoop + Giraph code with Windows + Eclipse, it is convenient to add
giraph-0.70-jar-with-dependencies.jar
hadoop-0.20.2-cdh3u2-core.jar
to the referenced libraries in your local Eclipse.
Recent Posts
- Survey of Inbound Tourist Spending in the Lake Kawaguchiko Area, November 2026
- Visit and Meetings in Tsuruoka City, Yamagata, November 2026
- Monitor Survey of an Audio Guide System at Kiunkaku, a Cultural Facility in Atami
- Supporting a Visitor Survey at One of the World’s Largest Jellyfish Aquariums
- Welcome Party 2026
Archives
- November 2026
- July 2026
- May 2026
- March 2026
- February 2026
- November 2025
- October 2025
- September 2025
- July 2025
- May 2025
- March 2025
- January 2025
- November 2024
- September 2024
- July 2024
- May 2024
- March 2024
- January 2024
- November 2023
- October 2023
- June 2023
- April 2023
- February 2023
- January 2023
- November 2022
- September 2022
- August 2022
- July 2022
- March 2022
- February 2022
- December 2021
- November 2021
- October 2021
- September 2021
- April 2021
- November 2020
- April 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- June 2019
- May 2019
- April 2019
- January 2019
- December 2018
- November 2018
- September 2018
- August 2018
- July 2018
- May 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- July 2017
- May 2017
- March 2017
- February 2017
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- March 2016
- December 2015
- November 2015
- September 2015
- July 2015
- June 2015
- May 2015
- March 2015
- February 2015
- December 2014
- November 2014
- September 2014
- August 2014
- July 2014
- May 2014
- March 2014
- January 2014
- December 2013
- August 2013
- June 2013
- May 2013
- March 2013
- June 2012
- March 2012
- February 2012
- January 2012
- April 2009