[ 
https://issues.apache.org/jira/browse/HAMA-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13699182#comment-13699182
 ] 

Martin Illecker commented on HAMA-774:
--------------------------------------

I have implemented a MatrixMultiplication[1] example, that would use this 
CompositeInputFormat.
But currently I'm missing some integration into BSPPeerImpl:

{code}
FATAL bsp.GroomServer: Error running child
  java.lang.NullPointerException
at org.apache.hama.bsp.BSPPeerImpl.readNext(BSPPeerImpl.java:604)
at 
at.illecker.hama.rootbeer.examples.matrixmultiplication.cpu.MatrixMultiplicationBSPCpu.bsp(Unknown
 Source)
at org.apache.hama.bsp.BSPTask.runBSP(BSPTask.java:177)
at org.apache.hama.bsp.BSPTask.run(BSPTask.java:146)
at org.apache.hama.bsp.GroomServer$BSPPeerChild.main(GroomServer.java:1262)
at org.apache.hama.bsp.GroomServer$BSPPeerChild.main(GroomServer.java:1262)
{code}

Would be nice if someone could help me!

Thanks a lot!

[1] 
https://github.com/millecker/applications/blob/master/hama/rootbeer/matrixmultiplication/src/at/illecker/hama/rootbeer/examples/matrixmultiplication/cpu/MatrixMultiplicationBSPCpu.java
                
> CompositeInputFormat in Hama
> ----------------------------
>
>                 Key: HAMA-774
>                 URL: https://issues.apache.org/jira/browse/HAMA-774
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp core
>    Affects Versions: 0.6.2
>            Reporter: Martin Illecker
>            Assignee: Martin Illecker
>            Priority: Minor
>             Fix For: 0.6.3
>
>         Attachments: HAMA-774.patch
>
>
> *Adapting Hadoop CompositeInputFormat to Hama.*
> Adapt the CompositeInputFormat from Hadoop and integrate it into Hama.
> e.g., Useful for matrix multiplication example by doing a inner join of two 
> matrices.
> Therefore the Hadoop join package has been adapted within 
> *org.apache.hama.bsp.join*.
> Finally I would need some help to integrate the CompositeInputFormat into 
> Hama by using
> {code} 
> job.setInputFormat(CompositeInputFormat.class);
> job.set("bsp.join.expr", CompositeInputFormat.compose("inner",
>    SequenceFileInputFormat.class, aPath, bPath));
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to