Skip to content
nishantgandhi99 edited this page Dec 16, 2014 · 5 revisions

This page describes how to install Graft with its prerequisites.

Prerequisites for Building Graft

Getting Maven

Maven 3 is necessary to build Graft. If you're using Giraph, it's very likely that you already have it installed. However, if your system doesn't have mvn command, see Maven Download and Installation page to install it on your system.

Getting Protocol Buffers

If your system doesn't have protoc command, you need to install Protocol Buffers:

wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
tar xfz protobuf-2.5.0.tar.gz
cd protobuf-2.5.0
./configure
make
make check
sudo make install

Building Graft

Get Giraph Trunk

Graft must be built as a module for Giraph trunk, so let's grab a copy of it:

git clone https://github.com/apache/giraph.git -b trunk
cd giraph
mvn -DskipTests --projects .,giraph-core install

Get Graft under Giraph, Build and Install It

Get a copy of Graft as giraph-debugger module in Giraph trunk:

git clone https://github.com/semihsalihoglu/graft.git  giraph-debugger
cd giraph-debugger
mvn -DskipTests compile

Adding the current directory to PATH environment will simplify running giraph-debug later:

PATH=$PWD:$PATH

A similar line can be added to your shell configuration. For example, if bash is used:

echo PATH=$PWD:\$PATH >>~/.bash_profile