Versions Compared

Key

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

...

---- (warning) Edit conflict - other version: ----

---- (warning) Edit conflict - your version: ----

  • If you use 0.20.x, then you'll need to install the zookeeper

---- (warning) End of edit conflict ----

  • SSH must be installed.
  • You should indeed increase your hbase.regionserver.lease.period to at least 4 minutes.

...

No Format
0. Check out source code from SVN, you must build using ant, as described below.

   $ svn checkout https://svn.apache.org/repos/asf/incubator/hama/trunk ${HAMA_HOME}
   ${HAMA_HOME}/ant clean package

1. Modify ${HAMA_HOME}/conf/hama-env.sh.
   
   Make sure that $HADOOP_CONF_DIR and $HBASE_CONF_DIR are set to the location of your hadoop+hbase cluster' configurations file.
   And uncomment line "# export HAMA_CLASSPATH=$HADOOP_CONF_DIR:$HBASE_CONF_DIR"

2. cp ${HAMA_HOME}/build/hama-0.12.0-*.jar ${HAMA_HOME}
   
   Make sure that hama-x.x.x-{,examples}.jar are placed in ${HAMA_HOME}
   
3. ${HAMA_HOME}/bin/hama examples

ex) ${HAMA_HOME}/bin/hama examples rand
    rand [-m maps] [-r reduces] <rows> <columns> <density> <matrix_name>
    ex) rand -m 10 -r 10 2000 2000 30.5% matrixA

4. ${HAMA_HOME}/bin/hama shell

   Now, you are in the hama shell as below.
   hama > 

   you can enjoy hama's power in hama shell!

   For examples:
   hama > a = Matrix.Random 10 10  // generate a random matrix(10,10)
   hama > b = Matrix.Random 10 10  // generate a random matrix(10,10)
   hama > c = Matrix.Random 10 20  // generate a random matrix(10,20)
   hama > d = ( a + b ) * c        // do matrix computation

...