You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by Jeff Storey <st...@gmail.com> on 2013/10/23 00:37:57 UTC
Do vertices automatically get created when using the HiveEdgeInputFormat
Hi, I'm new to giraph and had a question about creating a graph from a list
of edges. In a hive table, I have some data that looks like:
inVertexId | outVertexId
v1 v2
v1 v3
and so on
When loading data with the HiveEdgeInputFormat (or any edge input format),
do I need a separate input to create the vertices? Or will the vertices for
the graph automatically be created from the edges?
I'm working on putting together an example to test this out, but I wanted
to check with the group to make sure I wasn't trying something that giraph
isn't designed to do.
Thanks,
Jeff
Re: Do vertices automatically get created when using the HiveEdgeInputFormat
Posted by Jeff Storey <st...@gmail.com>.
Thanks for the quick response. I'll give it a try and post back if I run
into any problems.
On Tue, Oct 22, 2013 at 7:29 PM, Claudio Martella <
claudio.martella@gmail.com> wrote:
> the source vertex will be created automatically for you. if a vertex id
> (in your case v2 and v3) appear only in the "second column", the will be
> created only if (when) they receive a message.
>
>
> On Wed, Oct 23, 2013 at 12:37 AM, Jeff Storey <st...@gmail.com>wrote:
>
>> Hi, I'm new to giraph and had a question about creating a graph from a
>> list of edges. In a hive table, I have some data that looks like:
>>
>> inVertexId | outVertexId
>> v1 v2
>> v1 v3
>> and so on
>>
>> When loading data with the HiveEdgeInputFormat (or any edge input
>> format), do I need a separate input to create the vertices? Or will the
>> vertices for the graph automatically be created from the edges?
>>
>> I'm working on putting together an example to test this out, but I wanted
>> to check with the group to make sure I wasn't trying something that giraph
>> isn't designed to do.
>>
>> Thanks,
>> Jeff
>>
>
>
>
> --
> Claudio Martella
> claudio.martella@gmail.com
>
Re: Do vertices automatically get created when using the HiveEdgeInputFormat
Posted by Claudio Martella <cl...@gmail.com>.
the source vertex will be created automatically for you. if a vertex id (in
your case v2 and v3) appear only in the "second column", the will be
created only if (when) they receive a message.
On Wed, Oct 23, 2013 at 12:37 AM, Jeff Storey <st...@gmail.com> wrote:
> Hi, I'm new to giraph and had a question about creating a graph from a
> list of edges. In a hive table, I have some data that looks like:
>
> inVertexId | outVertexId
> v1 v2
> v1 v3
> and so on
>
> When loading data with the HiveEdgeInputFormat (or any edge input format),
> do I need a separate input to create the vertices? Or will the vertices for
> the graph automatically be created from the edges?
>
> I'm working on putting together an example to test this out, but I wanted
> to check with the group to make sure I wasn't trying something that giraph
> isn't designed to do.
>
> Thanks,
> Jeff
>
--
Claudio Martella
claudio.martella@gmail.com