Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Hama Pipes is equivalent to Hadoop Pipes and offers the possibility to use Hama with C/C++.

The current status of Hama Pipes is experimental and can be found here: HAMA-619

...

Installation

You can compile Hama Pipes by executing the following commands:

No Format

cd $HAMA_HOME/c++/utils
./configure
make install

cd $HAMA_HOME/c++/pipes
./configure
make install

Interface

Hama Pipes provides the following methods for C/C++ integration: (similar to the BSPModel)

...

Function

Description

sequenceFileOpen(const string& path, const string& option, const string& keyType, const string& valueType)

Opens a SequenceFile with option "r" or "w", key/value type and returns the corresponding fileID.

bool sequenceFileReadNext(int fileID, string& key, string& value)

Reads the next key/value pair from the SequenceFile.

bool sequenceFileAppend(int fileID, const string& key, const string& value)

Appends the next key/value pair to the SequenceFile.

bool sequenceFileClose(int fileID)

Closes a SequenceFile.

C++ BSP example

Finally here is the Pi Estimator example implemented with Hama Pipes:

...