hama-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samuel Guo" <guosi...@gmail.com>
Subject Re: Help, failed running hama matrix addition examples, thanks!
Date Fri, 24 Oct 2008 03:52:02 GMT
On Fri, Oct 24, 2008 at 11:49 AM, zhuguanyin <zhuguanyin@baidu.com> wrote:

>
>
>
> I add hbase-default.xml, hbase-site.xml, hama-site.xml to cluster's
> hadoop/conf dir, the matrix addition example run successful!
>
> I suggest  "add hbase-default.xml, hbase-site.xml, hama-site.xml to
> cluster's hadoop/conf dir"  to GettingStarted.


Thank you for your suggestion.
I will add this suggestion to the wiki page. :-)

>
>
>
> thanks!
>
>
> --------------------------------------------------
> From: "Samuel Guo" <guosijie@gmail.com>
> Sent: Thursday, October 23, 2008 2:20 PM
> To: <hama-user@incubator.apache.org>
> Subject: Re: Help, failed running hama matrix addition examples, thanks!
>
>  you can check this wiki
>> http://wiki.apache.org/hama/GettingStarted
>>
>>
>>  On Thu, Oct 23, 2008 at 1:42 PM, zhuguanyin <zhuguanyin@baidu.com>
>>> 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>
>>>
>>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message