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 3CD4CD3B3 for ; Mon, 6 Aug 2012 21:22:52 +0000 (UTC) Received: (qmail 40343 invoked by uid 500); 6 Aug 2012 21:22:52 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 40181 invoked by uid 500); 6 Aug 2012 21:22:52 -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 40169 invoked by uid 99); 6 Aug 2012 21:22:52 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 21:22:52 +0000 Received: from localhost (HELO mail-pb0-f52.google.com) (127.0.0.1) (smtp-auth username ssc, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 21:22:51 +0000 Received: by pbcxa7 with SMTP id xa7so1409233pbc.11 for ; Mon, 06 Aug 2012 14:22:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.190.102 with SMTP id gp6mr22040311pbc.5.1344288171421; Mon, 06 Aug 2012 14:22:51 -0700 (PDT) Received: by 10.142.170.16 with HTTP; Mon, 6 Aug 2012 14:22:51 -0700 (PDT) In-Reply-To: References: Date: Mon, 6 Aug 2012 23:22:51 +0200 Message-ID: Subject: Re: Trying to run the Connected Components example. From: Sebastian Schelter To: user@giraph.apache.org Content-Type: text/plain; charset=UTF-8 You cannot run the vertex class directly. Instead you can use GiraphRunner, e.g. hadoop jar giraph-jar-with-dependencies.jar org.apache.giraph.GiraphRunner org.apache.giraph.examples.ConnectedComponentsVertex --inputFormat org.apache.giraph.examples.IntIntNullIntTextInputFormat --inputPath hdfs:///path/to/input --outputFormat org.apache.giraph.examples.VertexWithComponentTextOutputFormat --outputPath hdfs:///path/to/output --workers numWorkers --combiner org.apache.giraph.examples.MinimumIntCombiner --sebastian 2012/8/6 Vishal Patel : > Hi, I am trying to run the connected-components example. I have giraph > installed, all the test pass on a 3 node cluster running hadoop-1.0.3/ > > The main method is missing in the ConnectedComponentsVertex class > > cd target/classes > hadoop jar ../giraph-0.1-jar-with-dependencies.jar > org.apache.giraph.examples.ConnectedComponentsVertex > > Exception in thread "main" java.lang.NoSuchMethodException: > org.apache.giraph.examples.ConnectedComponentsVertex.main([Ljava.lang.String;) > at java.lang.Class.getMethod(Class.java:1622) > at org.apache.hadoop.util.RunJar.main(RunJar.java:150) > > Can someone please help me with running this example? > > Vishal >