you can check this wiki
http://wiki.apache.org/hama/GettingStarted


> On Thu, Oct 23, 2008 at 1:42 PM, zhuguanyin <[EMAIL PROTECTED]> wrote:
> > hi, I'm a newbie for hama, I set up a hadoop/hbase cluster, and the hama
> > environment, but I couldn't run the examples successfull.
> >
> > 1) I don't know how to set the hama-site.xml, if there is a
> > hama-default.xml, it would be very helpful.
> > here is my hama-site.xml:
> >


A good suggestion.

Now in hama, a quick way is dealing with conf/hama-env.sh.
let $HADOOP_CONF_DIR point to your hadoop cluster's configuration.
let $HBASE_CONF_DIR point to your hadoop cluster's configuration.

can you try it again and let us know.


>
> > <configuration>
> >
> > <property>
> > <name>mapred.jar</name>
> > <value>/home/zhugy/hama/hama-trunk/hama-0.1.0-dev.jar</value>
> > </property>
> >
> > <property>
> > <name>hbase.rootdir</name>
> > <value>hdfs://jx-hadoop-data08.jx:52310/hbase-v1</value>
> > <description>The directory shared by region servers.
> > Should be fully-qualified to include the filesystem to use.
> > E.g: hdfs://NAMENODE_SERVER:PORT/HBASE_ROOTDIR
> > </description>
> > </property>
> >
> > <property>
> > <name>hbase.master</name>
> > <value>jx-hadoop-data08.jx:62310</value>
> > <description>The host and port that the HBase master runs at.
> > A value of 'local' runs the master and a regionserver in
> > a single process.
> > </description>
> > </property>
> > </configuration>
> >
> >
> > 2) When I test the matrix addition examples:
> > hama/hama-trunk/bin/hama examples addition -m 2 -r 1 2 2
> >
> >
> > I get the follow stderr on map-reduce's stderr on task:
> >


> > java.lang.NullPointerException
> >        at org.apache.hama.HamaAdminImpl.initialJob(HamaAdminImpl.java:51)
> >        at org.apache.hama.HamaAdminImpl.<init>(HamaAdminImpl.java:46)
> >        at
> org.apache.hama.AbstractMatrix.setConfiguration(AbstractMatrix.java:62)
> >        at org.apache.hama.DenseMatrix.<init>(DenseMatrix.java:66)
> >        at
> org.apache.hama.algebra.Add1DLayoutMap.configure(Add1DLayoutMap.java:43)
> >        at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:58)
> >        at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:82)
> >        at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:33)
> >        at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:58)
> >        at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:82)
> >        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:223)
> >        at
> org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2207)
> > java.lang.NullPointerException
> >        at
> org.apache.hama.HamaAdminImpl.matrixExists(HamaAdminImpl.java:79)
> >        at org.apache.hama.DenseMatrix.<init>(DenseMatrix.java:68)
> >        at
> org.apache.hama.algebra.Add1DLayoutMap.configure(Add1DLayoutMap.java:43)
> >        at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:58)
> >        at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:82)
> >        at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:33)
> >        at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:58)
> >        at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:82)
> >        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:223)
> >        at
> org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2207)
> >
> >
> >
> > thanks!
> >
> >
> > <http://blog.udanax.org>
>

Reply via email to