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 6BD43C2E8 for ; Tue, 2 Jul 2013 11:04:53 +0000 (UTC) Received: (qmail 17013 invoked by uid 500); 2 Jul 2013 11:04:53 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 16704 invoked by uid 500); 2 Jul 2013 11:04:47 -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 16695 invoked by uid 99); 2 Jul 2013 11:04:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 11:04:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of emre.aladag@agmlab.com designates 85.25.78.171 as permitted sender) Received: from [85.25.78.171] (HELO posta.agmlab.com) (85.25.78.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 11:04:40 +0000 Received: from posta.agmlab.com (posta.agmlab.com [85.25.78.171]) by posta.agmlab.com (Postfix) with ESMTP id 5D6A51540A98 for ; Tue, 2 Jul 2013 14:04:14 +0300 (EEST) Received: from localhost.localdomain (unknown [212.156.0.111]) by posta.agmlab.com (Postfix) with ESMTPSA id 1BE121540A57 for ; Tue, 2 Jul 2013 14:04:14 +0300 (EEST) Message-ID: <51D2B3B0.5020001@agmlab.com> Date: Tue, 02 Jul 2013 14:04:16 +0300 From: =?UTF-8?B?QWhtZXQgRW1yZSBBbGFkYcSf?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: user@giraph.apache.org Subject: Running Giraph job inside Java code Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, How can we run a Giraph job inside the java code? Using the scheme below didn't work. ... GiraphJob giraphJob = new GiraphJob(giraphConf, "LinkRank2"); giraphJob.getInternalJob().setJarByClass(LinkRankComputation.class); giraphJob.run(true); ... Error in Hadoop logs: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.giraph.examples.LinkRank.LinkRankComputation at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:881) I'm setting $HADOOP_CLASSPATH to the folder with giraph, giraph-examples jars. But it can't find the computation class.