giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Agrta Rawat <agrta.ra...@gmail.com>
Subject Re: Vertices reading the file..
Date Tue, 15 Apr 2014 08:29:56 GMT
Hi Jyoti,

Why do you want to do so in superstep 0? It should be done at the time of
loading graph into the memory done by vif. You should have this extra value
in the input file itself. Prepare your vertex input
file in such a way that it has vertex id and that extra content. Then you
can extract vertex id and value from that file.

Regards,
Agrta Rawat


On Tue, Apr 15, 2014 at 12:51 PM, Jyoti Yadav <rao.jyoti26yadav@gmail.com>wrote:

> Thanks Agrta for your reply.. You understood correctly.. I want this extra
> value as vertex value. But  am giving input in the form of json array. At
> the time of giving input. vertices are not having this extra content. I
> want to initialize this value in superstep 0. And vertices will read this
> value from file.Thats why i want to open this file..
>
> Thanks..
>
>
> On Tue, Apr 15, 2014 at 10:27 AM, Agrta Rawat <agrta.rawat@gmail.com>wrote:
>
>> Hi jyoti,
>>
>> If I have understood your problem correctly, you want vertex to have some
>> extra content other than its value?? If this is your problem, you can have
>> that extra content as its value.
>>
>> Regards,
>> Agrta Rawat
>>
>>
>> On Mon, Apr 14, 2014 at 1:49 PM, Wojciech Indyk <wojciechindyk@gmail.com>wrote:
>>
>>> Hi!
>>> As far as I understand, you need to include vertex description to your
>>> computation. If so, you have to define following arguments:
>>> -vif,--vertexInputFormat <arg>         Vertex input format
>>>  -vip,--vertexInputPath <arg>           Vertex input path
>>>
>>> --
>>> Kindly regards
>>> Wojciech Indyk
>>>
>>>
>>> 2014-04-14 5:55 GMT+02:00 Jyoti Yadav <rao.jyoti26yadav@gmail.com>:
>>>
>>> Hi Folks..
>>>>
>>>> In my algorithm,i want that all vertices should read some content
>>>> stored in the file.File is stored in local machine, not in hdfs. I am
>>>> working on pseudo distributed mode.  Suppose there are 5 lines stored in
>>>> the file. First line is useful for vertex 1, and second line is useful for
>>>> vertex 2 and so on..
>>>>
>>>> Do  i need to open the file in   vertex compute() function, and then
>>>> each vertex will get its respective line. Or  other alternative is there??
>>>>
>>>> Thanks..
>>>>
>>>> Best Regards
>>>>
>>>> Jyoti
>>>>
>>>
>>>
>>
>

Mime
View raw message