You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 173 Next »

Requirements

  • Java 1.6.x from Sun.
  • Hadoop 0.19.x and Hbase 0.19.x (Hama trunk will only run on this version of Hadoop and Hbase.)
    • [http://wiki.apache.org/hadoop/GettingStartedWithHadoop Getting Started with Hadoop]

    • [http://hadoop.apache.org/hbase/docs/current/api/overview-summary.html#overview_description Getting Started with Hbase]

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

Run Hama

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. ${HAMA_HOME} > cp ./build/hama-0.1.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) ${HADOOP_HOME} ./bin/hama examples random 1000 1000 a
    ${HADOOP_HOME} ./bin/hama examples random 1000 1000 b
    ${HADOOP_HOME} ./bin/hama examples mult a b 4


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

You can find more detais about Hama Shell in [http://wiki.apache.org/hama/Shell].

  • No labels