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 839F910F58 for ; Fri, 17 Jan 2014 11:59:41 +0000 (UTC) Received: (qmail 95012 invoked by uid 500); 17 Jan 2014 11:59:41 -0000 Delivered-To: apmail-hama-user-archive@hama.apache.org Received: (qmail 94829 invoked by uid 500); 17 Jan 2014 11:59:40 -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 94821 invoked by uid 99); 17 Jan 2014 11:59:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jan 2014 11:59:40 +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 tommaso.teofili@gmail.com designates 209.85.160.49 as permitted sender) Received: from [209.85.160.49] (HELO mail-pb0-f49.google.com) (209.85.160.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jan 2014 11:59:33 +0000 Received: by mail-pb0-f49.google.com with SMTP id up15so3493135pbc.36 for ; Fri, 17 Jan 2014 03:59:12 -0800 (PST) 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=PMJZhdS7g1rx9D7qupTo95adDZ+sVvdagxq8QG0XVHY=; b=ZXE+L6m+UAujQXSBOwHNMPG13RCgtt8RNQTYot0bhwA9hK2njVHu6DtfUYGIHLptwm jghTnBJW9cMtu8Ltx6ipWF/v+AkMIjqTpyuf+ZPAGYVFvvxGoi1ILE/YJiYGFKIP7Fqa WhpRJvf+IzJo+/2T8SQf+5CAX0R4hcCNkdwiB5ptUKUUprzdF87pnN0/ooUVBGPQPGLh WCk7muz9f4xp+IoE8u7iQ8wKq7mHk54Y2w2bc1PN5grNoReG9faFea2Kw0HC6a/uD5cR 7Rge1jPXf5pZbd07LsjA7wa4ZoZG0J5TTjlwXMW7Ln2J5YmCrYlZGaQ4gIwB5TGoVONu coUw== X-Received: by 10.68.219.168 with SMTP id pp8mr1557319pbc.51.1389959952439; Fri, 17 Jan 2014 03:59:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.213.163 with HTTP; Fri, 17 Jan 2014 03:58:32 -0800 (PST) In-Reply-To: <1389959417.48287.YahooMailNeo@web162003.mail.bf1.yahoo.com> References: <1389709117.72363.YahooMailNeo@web162001.mail.bf1.yahoo.com> <1389959417.48287.YahooMailNeo@web162003.mail.bf1.yahoo.com> From: Tommaso Teofili Date: Fri, 17 Jan 2014 12:58:32 +0100 Message-ID: Subject: Re: loading vertices into RAM To: user@hama.apache.org, Ammar Sahib Content-Type: multipart/alternative; boundary=e89a8f923f6c379ee204f0294595 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f923f6c379ee204f0294595 Content-Type: text/plain; charset=ISO-8859-1 you're passing the fully qualified name of the Class as a String to a method setClass(String, Class) while you should pass the Class itself, e.g.: HamaConfiguration conf = new HamaConfiguration(); conf.setClass("hama.graph.vertices.info",org.apache. hama.graph.ListVerticesInfo.class); Hope this helps, Tommaso 2014/1/17 Ammar Sahib > Hi > > I am trying to evaluate the different implementation below: > > > - ListVerticesinfo: loads vertices into array list. > - MapVerticesinfo: loads vertices into tree map. > - DiskVerticesInfo: loads vertices into a local file. > > When using the conf.setClass method I got an error. Below is sample of my > code: > HamaConfiguration conf = new HamaConfiguration(); > conf.setClass("hama.graph.vertices.info > ","org.apache.hama.graph.ListVerticesInfo"); > > The error I am getting is: > The method setClass(String, Class, Class) in the type Configuration > is not applicable for the arguments (String, String). > > However I found that I can use conf.set method. > > > Can someone tell me what is I am doing wrong? > > > > > > On Wednesday, January 15, 2014 8:01 AM, Tommaso Teofili < > tommaso.teofili@gmail.com> wrote: > > and OffHeapVerticesInfo for loading vertices off heap, which is available > with 0.6.3 as well if I recall correctly. > Tommaso > > > > 2014/1/15 Edward J. Yoon > > > There are few implementations. > > > > - ListVerticesinfo: loads vertices into array list. > > - MapVerticesinfo: loads vertices into tree map. > > - DiskVerticesInfo: loads vertices into a local file. > > > > You can choose one of them by setting the "hama.graph.vertices.info" > > in job configuration. > > > > > conf.setClass("hama.graph.vertices.info", > > "org.apache.hama.graph.ListVerticesInfo". > > > > With the latest 0.6.3 version, you can use only ListVerticesInfo. > > Please use the TRUNK. > > > > > > On Tue, Jan 14, 2014 at 11:18 PM, Ammar Sahib > > wrote: > > > Hi > > > > > > According to the BSP model, the data is processed in the RAM and that > is > > the reason why Pregel model is faster than the MapReduce (MapReduce > > writedown to disk). Can someone explains to me how to be sure that all > the > > graph vertices are actually been loaded in RAM? > > > > > > > > > How would HAMA behave if the vertices values are so big such that the > > available RAM memory is not enough to contains all of the vertices? > > > > > > Regards > > > > > > > > -- > > Best Regards, Edward J. Yoon > > @eddieyoon > > > --e89a8f923f6c379ee204f0294595--