hama-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ammar Sahib <ammar.sa...@yahoo.com>
Subject Re: loading vertices into RAM
Date Fri, 17 Jan 2014 13:40:54 GMT
I think we are getting close now, However now I have runtime exception:

Exception in thread "main" java.lang.RuntimeException: interface org.apache.hama.graph.VerticesInfo
not org.apache.hama.graph.ListVerticesInfo
    at org.apache.hadoop.conf.Configuration.setClass(Configuration.java:858)





On Friday, January 17, 2014 2:30 PM, Tommaso Teofili <tommaso.teofili@gmail.com> wrote:
 
ah yes, sorry, you also have to specify the interface, I don't have the
code in front of me but it should be :

conf.setClass("hama.graph.vertices.info",
org.apache.hama.graph.VerticesInfo.class, org.apache.
hama.graph.ListVerticesInfo.class);

Tommaso



2014/1/17 Ammar Sahib <ammar.sahib@yahoo.com>

> Hi
>
> Thanks for your reply. I used now:
>
> conf.setClass("hama.graph.vertices.info
> ",org.apache.hama.graph.ListVerticesInfo.class);
>
> Now I get this error:
> The method setClass(String, Class<?>, Class<?>) in the type Configuration
> is not applicable for the arguments (String, Class<ListVerticesInfo>)
>
> I am using HAMA 0.6.3
>
>
>
>
>
> On Friday, January 17, 2014 12:59 PM, Tommaso Teofili <
> tommaso.teofili@gmail.com> wrote:
>
> 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 <ammar.sahib@yahoo.com>
>
> > 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 <edwardyoon@apache.org>
> >
> > > 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 <ammar.sahib@yahoo.com>
> > > 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
> > >
> >
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message