Hi folks..
To give the vertex value as (double,double), I created my own class
MyVertexValue.java and to give vertex input format,i also created
MyVertexInputFormat.java...Program is compiling successfully...
But while running, it is showing some strange behaviour
Below is the command given..
I think you have to implement your own input format similar to the
org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat
where the vertex value Type is MyVertexValueWritable
and the input graph should be like:
[0,0,0,[[1,1],[3,3]]]
[1,0,0,[[0,1],[2,2],[3,1]]]
[2,0,0,[[1,2],[
Thanks all for your ideas...
I have one further query..
Scenario...
Vertex_id-->LongWritable
Vertex_value-->MyVertexValueWritable( it consists of composite value-->
double,double )
Edge_value->FloatWritable
Input given to giraph is in following format...
[0,0,[[1,1],[3,3]]][1,0,[[0,1],[2,2],[3
You can also set a variable outside of the compute function, at the
private part of the class. You will have to instantiate it at
superstep 0 though, else you will have a NullPointerException thrown,
in case you use it at superstep 1.
Quoting Jyoti Yadav :
Thanks Ameya...I will give a t
Thanks Ameya...I will give a try to your ideas...
On Sun, Nov 17, 2013 at 3:17 PM, Ameya Vilankar wrote:
> In your scenario, you want to store some value that is obtained in
> Superstep 1, so that it is available to a vertex in all the subsequent
> supersteps. The best place to do that is to sto
In your scenario, you want to store some value that is obtained in
Superstep 1, so that it is available to a vertex in all the subsequent
supersteps. The best place to do that is to store it on the vertex itself.
The simplest example is ShortesPath Example where you store the current
lowest distanc
Acc to my experience with Giraph vertex's compute function,whatever you
define here locally will last only for single Superstep..
Thanks
Jyoti
On Sun, Nov 17, 2013 at 2:41 PM, Mirko Kämpf wrote:
> Hi,
>
> if it is a local value, just important for that given vertex, it might
> work with a loca
Hi,
if it is a local value, just important for that given vertex, it might work
with a local variable, maybe even a more complex data structure, e.g. a
Stack or a FIFO buffer, to handle "old" data. I do not consider to exchange
data between vertexes, only within one vertex over time.
I write this
Hi folks...
while executing my program ,i came across a doubt which is creating
problem...
Scenario
In compute() function,
Suppose in superstep1 each vertex want to save some value so that every
vertex can use its previously saved value in upcoming supersteps...Is it
possible???
Any ideas