0

私は過去 10 日間から giraph に取り組んできました。与えられた例を Giraph にインストールして実行する方法についてのアイデアを得ました。しかし、私は自分のカスタム コードを設計したいので、あなたの助けが必要です。

4

1 に答える 1

2

What you need is to create a new project, a package foo and a class foo1 in that package. this project must reference to giraph-core jar files. class foo1 must extends class AbstractComputation. You should override compute function of AbstractComputation. In the compute function you will develop your own graph algorithm based on vertex-oriented paradigm.

For more information about how to implement your own algorithm, you can examples provided in giraph-examples package of giraph like SimpleConnectedComponents.java and SingleSourceShortestPaths.java.

After you implement foo1, you should create a jar file from your project and pass this jar file into your command using -libjars parameter.

于 2015-05-30T04:56:53.777 に答える