Return-Path: X-Original-To: apmail-hama-user-archive@www.apache.org Delivered-To: apmail-hama-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 4C4ABDE23 for ; Wed, 19 Sep 2012 07:05:19 +0000 (UTC) Received: (qmail 35063 invoked by uid 500); 19 Sep 2012 07:05:19 -0000 Delivered-To: apmail-hama-user-archive@hama.apache.org Received: (qmail 34814 invoked by uid 500); 19 Sep 2012 07:05:14 -0000 Mailing-List: contact user-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hama.apache.org Delivered-To: mailing list user@hama.apache.org Received: (qmail 34787 invoked by uid 99); 19 Sep 2012 07:05:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 07:05:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandy.dingxin@gmail.com designates 209.85.217.175 as permitted sender) Received: from [209.85.217.175] (HELO mail-lb0-f175.google.com) (209.85.217.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 07:05:05 +0000 Received: by lban1 with SMTP id n1so593807lba.34 for ; Wed, 19 Sep 2012 00:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XIPtDGhJHLNI0hwE24bR1siF3F2rmXFvG0orOHixE4k=; b=jx6XvVFbWAo8Xpej6F3pGkobtYYvX4CMtQIhu2Fwlull+7NWOa0UfUAhSPvwwwMvf4 jiGSIEuOgednmuKE7Y+iO+DTSRWHXPIUChY0HXxRbq9pxxhaUIydhFZ/NKfc1mlatE6F CKOqAfIfv6XWSPVg9LWP8vVmRp/tKX+V6nlljj56DtfM5eOsZhBE9pKDwTlz34M/cqwI EqJgO+LKDDtQ2NoKSTQOxbdGjeS0AyN+J9A7OyRnOvgR9ErbSRQCsGzAh0pA704afawS Su1VcGp5AjQ3K1800nzPXx7sDVSvmq4D3r0qXRu+mdTNh9KN+eWabqIe91pAsboAz8De DxgQ== MIME-Version: 1.0 Received: by 10.152.110.9 with SMTP id hw9mr1794084lab.55.1348038285200; Wed, 19 Sep 2012 00:04:45 -0700 (PDT) Received: by 10.112.59.104 with HTTP; Wed, 19 Sep 2012 00:04:45 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Sep 2012 15:04:45 +0800 Message-ID: Subject: Re: pagerank NullPointerException From: Sandy Ding To: user@hama.apache.org Content-Type: multipart/alternative; boundary=bcaec54b4886220b7704ca089ffc --bcaec54b4886220b7704ca089ffc Content-Type: text/plain; charset=ISO-8859-1 So I have to recompile the pagerank example? Can I pass it as a parameter to the existing jar? 2012/9/19 Thomas Jungblut > Hey, > > if you read closely: > > http://wiki.apache.org/hama/WriteHamaGraphFile#Google_Web_dataset_.28local_mode.2C_pseudo_distributed_cluser.29 > > You find that there is a property called "hama.graph.repair": > > // hama takes care that the graph is complete > pageJob.set("hama.graph.repair", "true"); > > This basically sends messages along the known edges and adds vertices > if there aren't any on the "other side". > > If this isn't to scalable for you, then a preprocessing mapreduce job > is fine, where you emit the vertex id as key along with the complete > edge list as value, also the edge keys with an empty value. > In the reducer you should get either multiple complete lines or empty > values. > In the case you get only an empty value, you know that this vertex > wasn't included in the dataset and you can repair by emitting it in > the reducer as single line. > > > 2012/9/19 Sandy Ding : > > Hi, guys, > > > > The web-google dataset seems to miss some key sites, for example, there > is > > no entry starting with 111067. > > This leads to weird NullPointerException. How do you fix this? > > > > Cheers, > > Sandy > --bcaec54b4886220b7704ca089ffc--