Return-Path: X-Original-To: apmail-giraph-user-archive@www.apache.org Delivered-To: apmail-giraph-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4FC96C1E9 for ; Mon, 3 Jun 2013 00:32:46 +0000 (UTC) Received: (qmail 26303 invoked by uid 500); 3 Jun 2013 00:06:06 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 26265 invoked by uid 500); 3 Jun 2013 00:06:06 -0000 Mailing-List: contact user-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@giraph.apache.org Delivered-To: mailing list user@giraph.apache.org Received: (qmail 26257 invoked by uid 99); 3 Jun 2013 00:06:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 00:06:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claudio.martella@gmail.com designates 209.85.220.174 as permitted sender) Received: from [209.85.220.174] (HELO mail-vc0-f174.google.com) (209.85.220.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 00:06:00 +0000 Received: by mail-vc0-f174.google.com with SMTP id ha12so349340vcb.33 for ; Sun, 02 Jun 2013 17:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=JgTwKaQ/q34CsRgLEWePz1zUS4T9t/MBAU1JbNMAv6I=; b=zVlYzcrLoGWA0xuCv7CtlC6PAW32m0aMTcKtdUf++/3gOWGurypMfNp0WzMVCMBaYR X5anXPmAJeJZN3k9qmw2yUGuqmHrCgS/8NRGvDA/rf7vI3cpB50N/JFmKX5DNY8/N4T+ WpULtcfatHUPT0/HOce4qRvopdcVvRWEbW3Rq8tIgF2T8B+3g2uculYzhXrTzid9xo9t Q92ITU+0GUAgARP34mkNXsaPCIYbiYeQZiGFpodh9oCNtVmtFuz3knX9OoR4NhCpnx67 mfIlO1q5hVJF/i2dk9BRlzwyMJREvJrTNF35pvehQi5fBOZBS6bupU9LScINGmvwQfcy +chQ== X-Received: by 10.52.158.225 with SMTP id wx1mr13578826vdb.121.1370217939350; Sun, 02 Jun 2013 17:05:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.89.137 with HTTP; Sun, 2 Jun 2013 17:05:19 -0700 (PDT) In-Reply-To: References: From: Claudio Martella Date: Mon, 3 Jun 2013 02:05:19 +0200 Message-ID: Subject: Re: SimpleShortestPathsComputation with Edge List input file To: "user@giraph.apache.org" Content-Type: multipart/alternative; boundary=089e016353248a3b9104de34b989 X-Virus-Checked: Checked by ClamAV on apache.org --089e016353248a3b9104de34b989 Content-Type: text/plain; charset=ISO-8859-1 Hi Peter, shortly, those are abstract classes, that's why you cannot instantiate them. You'll have to use a specific class extending those classes that are aware of the types of the signature of the vertex (I, V, E, M). check out some classes in the format package that have those types in the class name. On Mon, Jun 3, 2013 at 1:25 AM, Peter Holland wrote: > Hello, > I'm new to Giraph and I'm trying to run SimpleShortestPathsComputation > using an edge list input file. I have some questions and and error message > that hopefully I can get some help with. > > Edge List File Format > What is the correct format for an edge list input file? > I have a .tsv file with a vertex represented as an integer. Is this > correct? > > 5 11 > 1 6 > 6 9 > 6 8 > 8 9 > ..... > > Input File Class: > Is org.apache.giraph.io.formats.*TextEdgeInputFormat *the only input > format that can be used for edge lists? > > Output File Class: > Does the output format depend on the job you are running? I have been > using org.apache.giraph.io.formats.*TextVertexOutputFormat* for > SimpleShortestPathsComputation. > > Run Command: > So this is the command I am using to try to run the > SimpleShortestPathsComputation using an edge list input file. > > *bin/hadoop jar > /home/ubuntu/giraph/giraph-examples/target/giraph-examples-1.1.0-SNAPSHOT-for-hadoop-1.0.2-jar-with-dependencies.jar > org.apache.giraph.GiraphRunner > org.apache.giraph.examples.SimpleShortestPathsComputation * > *-eif org.apache.giraph.io.formats.TextEdgeInputFormat * > *-eip /simpleEdgeList/SimpleEdgeList.tsv * > *-of org.apache.giraph.io.formats.TextVertexOutputFormat * > *-op /outShortest* > *-w 3* > > Error Message > When I run the above command I get the following error message: > Exception in thread "main" java.lang.IllegalStateException: newInstance: > Couldn't instantiate org.apache.giraph.io.formats.TextVertexOutputFormat > > Thank you, > Peter > -- Claudio Martella claudio.martella@gmail.com --089e016353248a3b9104de34b989 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Peter,

shortly, those are abst= ract classes, that's why you cannot instantiate them. You'll have t= o use a specific class extending those classes that are aware of the types = of the signature of the vertex (I, V, E, M). check out some classes in the = format package that have those types in the class name.


On Mon,= Jun 3, 2013 at 1:25 AM, Peter Holland <d99991048@mydit.ie>= wrote:
Hello,=A0
I'm new to Giraph and I'm trying to run SimpleShortestPathsComputat= ion using an edge list input file. I have some questions and and error mess= age that hopefully I can get some help with.=A0
=
Edge List File Format
What is the correct format for an edge list input file?=A0
I have a .= tsv file with a vertex represented as an integer. Is this correct?=A0
=
5 11
1 6
6 9
6 8
8 = 9
.....

Input File Class:
Is org.apache.giraph.io.formats.TextEdgeInputForm= at=A0the only input format that can be used for edge lists?=A0
=
Output File Class:=A0
Does the output format depend on the job you are running? I have been using= org.apache.giraph.io.formats.TextVertexOutputFormat=A0for SimpleSho= rtestPathsComputation.

Run Command:=A0
So this is the command I am using to try to = run the SimpleShortestPathsComputation using an edge list input file.=A0
=
bin/hadoop jar /home/ubuntu/giraph/giraph-examples/target/gira= ph-examples-1.1.0-SNAPSHOT-for-hadoop-1.0.2-jar-with-dependencies.jar org.a= pache.giraph.GiraphRunner org.apache.giraph.examples.SimpleShortestPathsCom= putation=A0
= -eif org.apache.giraph.io.formats.TextEdgeInputFormat=A0
-eip /simpleEdgeList/SimpleEdgeList.tsv=A0
-of org.apache.gi= raph.io.formats.TextVertexOutputFormat=A0
-op /outShortest
-w 3

Error Message
When I run the above command I get th= e following error message:=A0
Exception in thread "main" java.lang.IllegalStateException: = newInstance: Couldn't instantiate org.apache.giraph.io.formats.TextVert= exOutputFormat

Thank you,
Peter=A0



--
=A0 =A0Clau= dio Martella
=A0 =A0claudio.martella@gmail.com=A0 =A0
--089e016353248a3b9104de34b989--