You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon" <ed...@apache.org> on 2009/09/12 00:43:30 UTC

Re: Versions mismatches

Please copy and paste your code and error message here.

On Sat, Sep 12, 2009 at 12:47 AM, Zohar, Nir <nz...@verisign.com> wrote:
> Yes.
>
> -----Original Message-----
> From: edward@udanax.org [mailto:edward@udanax.org] On Behalf Of Edward J. Yoon
> Sent: Friday, September 11, 2009 4:03 AM
> To: Zohar, Nir
> Subject: Re: Versions mismatches
>
> Hi, Did you try to svn update/rebuild it?
>
> On Thu, Sep 10, 2009 at 4:48 PM, Zohar, Nir <nz...@verisign.com> wrote:
>> Thanks for your response.
>>
>> I fixed my incorrect matrix B definition per your comment, but now I've null pointer exception at DenseMatrix in line 327 when try to print the matrix out.
>> I also try to run the test that you wrote TestMatrixVectorMult and have same exception.
>>
>> Thanks again,
>> Nir.
>>
>>
>>
>> -----Original Message-----
>> From: edward@udanax.org [mailto:edward@udanax.org] On Behalf Of Edward J. Yoon
>> Sent: Thursday, September 10, 2009 6:10 AM
>> To: Zohar, Nir
>> Subject: Re: Versions mismatches
>>
>> bug is fixed. Please retry after svn update. ;)
>>
>> On Thu, Sep 10, 2009 at 10:35 AM, Edward J. Yoon <ed...@apache.org> wrote:
>>> Thanks for your report.
>>>
>>> In your example, matrix B should be {{1},{2}}, not {{1,2}}.
>>>
>>>>        b.set(0, 0, 1);
>>>>        b.set(0, 1, 2);
>>>
>>> However, as you mentioned above, result should be {{5},{11}} but there
>>> seems a bug in Hama.
>>>
>>> I'll fix soon.
>>>
>>> On Wed, Sep 9, 2009 at 8:53 PM, Zohar, Nir <nz...@verisign.com> wrote:
>>>> Hi again,
>>>>
>>>> Since I've more complex operations, (such as multiply, inverse, load...) I decided coding instead of use the shell.
>>>>
>>>> I've wrote simple example to multiple 2 matrixes, and got incorrect results, can you let me know if I've some mistake, or it's well known bug.
>>>>
>>>> A =     1,2
>>>>        3,4
>>>>
>>>> B =     1
>>>>        2
>>>>
>>>> The result should be (C = A * B):
>>>> C =     5
>>>>        11
>>>>
>>>> But I got incorrect results from the example below:
>>>> 1.0,2.0
>>>> 3.0,6.0
>>>>
>>>> The code:
>>>>
>>>> public static void main(String[] args) throws IOException {
>>>>
>>>>        conf.set("hbase.rootdir", "hdfs://lb-emu-2:54310/hbase");
>>>>        conf.set("hbase.master", "lb-emu-2:60000");
>>>>        conf.set("mapred.jar", "/app/installs/hama/hama-0.1.0-dev.jar");
>>>>
>>>>        DenseMatrix a = new DenseMatrix(conf, "A", true);
>>>>
>>>>        a.setDimension(2, 2);
>>>>        a.set(0, 0, 1);
>>>>        a.set(0, 1, 2);
>>>>        a.set(1, 0, 3);
>>>>        a.set(1, 1, 4);
>>>>
>>>>        DenseMatrix b = new DenseMatrix(conf, "B", true);
>>>>
>>>>        b.setDimension(2, 1);
>>>>        b.set(0, 0, 1);
>>>>        b.set(0, 1, 2);
>>>>
>>>>        DenseMatrix c = a.mult(b);
>>>>
>>>>        for (int i = 0; i < c.getRows(); i++) {
>>>>            for (int j = 0; j < c.getColumns(); j++) {
>>>>                System.out.print(c.get(i, j) + " ");
>>>>            }
>>>>            System.out.println("");
>>>>        }
>>>>    }
>>>>
>>>>
>>>> Thanks again,
>>>> Nir.
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: edward@udanax.org [mailto:edward@udanax.org] On Behalf Of Edward J. Yoon
>>>> Sent: Wednesday, September 09, 2009 12:23 PM
>>>> To: Zohar, Nir
>>>> Subject: Re: Versions mismatches
>>>>
>>>> Your welcome. If you have some requests please let us know.
>>>>
>>>> Thanks.
>>>>
>>>> On Wed, Sep 9, 2009 at 5:40 PM, Zohar, Nir<nz...@verisign.com> wrote:
>>>>> Thanks.
>>>>>
>>>>> The problem was indeed with the different jars versions.
>>>>>
>>>>> Thanks again,
>>>>> Nir.
>>>>>
>>>>> -----Original Message-----
>>>>> From: edward@udanax.org [mailto:edward@udanax.org] On Behalf Of Edward J. Yoon
>>>>> Sent: Wednesday, September 09, 2009 10:46 AM
>>>>> To: hama-user@incubator.apache.org
>>>>> Subject: Re: Versions mismatches
>>>>>
>>>>> Hello,
>>>>>
>>>>> You need to remove the 0.19.0 jars and copy your cluster version,
>>>>> Hadoop/Hbase-0.19.x jars in {$HAMA_HOME}/lib folder. And, You also
>>>>> need to rebuild the Hama.
>>>>>
>>>>> AFAIK, there is no release of Hadoop 0.19.3. So I tested using the
>>>>> Hadoop 0.19.2 and Hbase 0.19.3.
>>>>>
>>>>> [edward@udanax hbase-0.19.3]# cp hbase-0.19.3**.jar
>>>>> /usr/workspace/hama-trunk/lib/
>>>>> [edward@udanax hbase-0.19.3]# cp ../hadoop-0.19.2/hadoop-0.19.2-**.jar
>>>>> /usr/workspace/hama-trunk/lib/
>>>>> [edward@udanax hama-trunk]# rm -rf lib/h**-0.19.0**.jar
>>>>> [edward@udanax hama-trunk]# ant clean package
>>>>> [edward@udanax hama-trunk]# bin/hama shell
>>>>> Hama > a = Matrix.Random 10 10;
>>>>> it is a RandMatrix operation, [rows=10], [columns=10].
>>>>> 09/09/09 16:36:38 INFO hama.AbstractMatrix: Initializing the matrix storage.
>>>>> 09/09/09 16:36:44 INFO hama.AbstractMatrix: Create Matrix DenseMatrix_randwoast
>>>>> 09/09/09 16:36:44 INFO hama.AbstractMatrix: Create the 10 * 10 random
>>>>> matrix : DenseMatrix_randwoast
>>>>> a =
>>>>> org.apache.hama.DenseMatrix@fe748f
>>>>> Hama >
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Wed, Sep 9, 2009 at 3:50 PM, Zohar, Nir<nz...@verisign.com> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I'm new to Hama and try to run some basic command from the shell as
>>>>>> written in the getting started.
>>>>>> I'm using both HBase and Hadoop version 19.3.x.
>>>>>> The error attached below.
>>>>>>
>>>>>> Can you assist?
>>>>>>
>>>>>> Thanks,
>>>>>> Nir.
>>>>>>
>>>>>> #####################
>>>>>>
>>>>>> Hama > a = matrix.random 10 10;
>>>>>> it is a RandMatrix operation, [rows=10], [columns=10].
>>>>>> 09/09/08 13:21:14 INFO client.HConnectionManager$TableServers: getMaster
>>>>>> attempt 0 of 10 failed; retrying after sleep of 2000
>>>>>> org.apache.hadoop.hbase.ipc.HBaseRPC$VersionMismatch: Protocol
>>>>>> org.apache.hadoop.hbase.ipc.HMasterInterface version mismatch. (client =
>>>>>> 15, server = 16)
>>>>>>        at
>>>>>> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:472)
>>>>>>        at
>>>>>> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:443)
>>>>>>        at
>>>>>> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:491)
>>>>>>        at
>>>>>> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getMaster
>>>>>> (HConnectionManager.java:204)
>>>>>>        at
>>>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:72)
>>>>>>        at
>>>>>> org.apache.hama.AbstractMatrix.setConfiguration(AbstractMatrix.java:101)
>>>>>>        at org.apache.hama.DenseMatrix.<init>(DenseMatrix.java:90)
>>>>>>        at org.apache.hama.DenseMatrix.random(DenseMatrix.java:208)
>>>>>>        at
>>>>>> org.apache.hama.shell.execution.RandMatrixOperation.operate(RandMatrixOp
>>>>>> eration.java:52)
>>>>>>        at
>>>>>> org.apache.hama.shell.execution.EvalExpression.execute(EvalExpression.ja
>>>>>> va:48)
>>>>>>        at
>>>>>> org.apache.hama.shell.HamaShellParser.processScript(HamaShellParser.java
>>>>>> :85)
>>>>>>        at
>>>>>> org.apache.hama.shell.parser.script.HamaScriptParser.parse(HamaScriptPar
>>>>>> ser.java:37)
>>>>>>        at
>>>>>> org.apache.hama.shell.HamaShellParser.parseContOnError(HamaShellParser.j
>>>>>> ava:169)
>>>>>>        at org.apache.hama.shell.HamaShell.run(HamaShell.java:67)
>>>>>>        at org.apache.hama.shell.HamaShell.main(HamaShell.java:89)
>>>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>        at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>>>>>> a:39)
>>>>>>        at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>>>>>> Impl.java:25)
>>>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>        at org.apache.hadoop.util.RunJar.main(RunJar.java:165)
>>>>>>        at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
>>>>>>        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>>>>>>        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
>>>>>>        at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards, Edward J. Yoon @ NHN, corp.
>>>>> edwardyoon@apache.org
>>>>> http://blog.udanax.org
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards, Edward J. Yoon @ NHN, corp.
>>>> edwardyoon@apache.org
>>>> http://blog.udanax.org
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards, Edward J. Yoon @ NHN, corp.
>>> edwardyoon@apache.org
>>> http://blog.udanax.org
>>>
>>
>>
>>
>> --
>> Best Regards, Edward J. Yoon @ NHN, corp.
>> edwardyoon@apache.org
>> http://blog.udanax.org
>>
>
>
>
> --
> Best Regards, Edward J. Yoon @ NHN, corp.
> edwardyoon@apache.org
> http://blog.udanax.org
>



-- 
Best Regards, Edward J. Yoon @ NHN, corp.
edwardyoon@apache.org
http://blog.udanax.org