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 <[email protected]> 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 > <[email protected]>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 <[email protected]>: >> >> 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 >>> >> >> >
