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 06F6A10663 for ; Wed, 31 Jul 2013 23:14:04 +0000 (UTC) Received: (qmail 58813 invoked by uid 500); 31 Jul 2013 23:14:03 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 58777 invoked by uid 500); 31 Jul 2013 23:14:03 -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 58769 invoked by uid 99); 31 Jul 2013 23:14:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 23:14:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kyle.r.orlando@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 23:13:58 +0000 Received: by mail-ob0-f180.google.com with SMTP id up14so2572320obb.11 for ; Wed, 31 Jul 2013 16:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WJrmpBWXVIR6psWVvDq5vG0vUr06CN1IJxz24n3V+mU=; b=K1uZsk6eWq5i1LnCwYdzKZiH/9WshOYvNA2daAYZnChSeqW53Aon0/n0gTrDx/dCrr BnOER6jrOvIrHEhAmDqV7tQUmMboSQS0v1ne9dvAwFQS8p83HqSGTbXuXoewny6uIUAw SvMb1EXdd2qAJmsKwdzMsh0F+eqdi+/zt2qg9eOtFlwBNhe+9NTBnX69UPHgchrw53AG fe1f9wvaSplc5bgcoPONxon95r3hAIk8LubtGHMAHKTLrA+pu/BkXHSiQ4CKDsjoh0Wo 0fMe+lbl9CxJK4ICH1gob6PVUlgKxz5makUTXQK2Pn76oBmWkginunzqhxDpwEP3pNWp 1fqA== MIME-Version: 1.0 X-Received: by 10.50.11.46 with SMTP id n14mr943029igb.15.1375312417872; Wed, 31 Jul 2013 16:13:37 -0700 (PDT) Received: by 10.42.253.196 with HTTP; Wed, 31 Jul 2013 16:13:37 -0700 (PDT) Date: Wed, 31 Jul 2013 19:13:37 -0400 Message-ID: Subject: Getting Giraph to work with HBase From: Kyle Orlando To: user@giraph.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello, I've been having some problems getting Giraph to work with a table that is stored in HBase. I've created my own classes that extend HBaseVertexInputFormat and HBaseVertexReader (respectively) and implemented nextVertex() and getVertex() accordingly, but I still can't get it to work. Here is what I typed into the command line after specifying the GiraphRunner class: org.apache.giraph.examples.SimplePageRankComputation -vif HBasePractice.LongDoubleFloatHBaseVertexInputFormat -of org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op /hbaseOut -w 2 -mc org.apache.giraph.examples.SimplePageRankComputation\$SimplePageRankMasterCompute This is the error that I'm getting from the logs: 2013-07-31 17:20:28,880 ERROR org.apache.giraph.master.MasterThread: masterThread: Master algorithm failed with NullPointerException java.lang.NullPointerException at org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:94) at org.apache.giraph.io.hbase.HBaseVertexInputFormat.getSplits(HBaseVertexInputFormat.java:169) at org.apache.giraph.io.internal.WrappedVertexInputFormat.getSplits(WrappedVertexInputFormat.java:72) at org.apache.giraph.master.BspServiceMaster.generateInputSplits(BspServiceMaster.java:315) at org.apache.giraph.master.BspServiceMaster.createInputSplits(BspServiceMaster.java:627) at org.apache.giraph.master.BspServiceMaster.createVertexInputSplits(BspServiceMaster.java:694) at org.apache.giraph.master.MasterThread.run(MasterThread.java:100) 2013-07-31 17:20:28,881 FATAL org.apache.giraph.graph.GraphMapper: uncaughtException: OverrideExceptionHandler on thread org.apache.giraph.master.MasterThread, msg = java.lang.NullPointerException, exiting... java.lang.IllegalStateException: java.lang.NullPointerException at org.apache.giraph.master.MasterThread.run(MasterThread.java:185) Caused by: java.lang.NullPointerException at org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:94) at org.apache.giraph.io.hbase.HBaseVertexInputFormat.getSplits(HBaseVertexInputFormat.java:169) at org.apache.giraph.io.internal.WrappedVertexInputFormat.getSplits(WrappedVertexInputFormat.java:72) at org.apache.giraph.master.BspServiceMaster.generateInputSplits(BspServiceMaster.java:315) at org.apache.giraph.master.BspServiceMaster.createInputSplits(BspServiceMaster.java:627) at org.apache.giraph.master.BspServiceMaster.createVertexInputSplits(BspServiceMaster.java:694) at org.apache.giraph.master.MasterThread.run(MasterThread.java:100) I don't know how/why a NullPointerException is being thrown. Do I need to specify the -vip option? I didn't think so, because in my code for my class that extends HBaseVertexInputFormat I do the following: private ImmutableClassesGiraphConfiguration conf; @Override public void setConf(ImmutableClassesGiraphConfiguration conf) { conf.set(TableInputFormat.INPUT_TABLE, "edges"); this.conf = conf; } Help would be much appreciated. I actually was a bit hesitant to post this at first; I was determined to figure it out on my own, but then I noticed that there have been virtually no questions asked regarding HBase + Giraph on this mailing list, so I figured that posting this might help someone out with similar problems later on in the future. Thanks, -- Kyle Orlando Computer Engineering Major University of Maryland