Thank you, Ted. I see.

What is a good example of reading HBase from a MR job?

On Wed, Jan 26, 2011 at 11:35 PM, Ted Yu <[email protected]> wrote:

> Just replace 'NavigableMap>>' with:
>
> NavigableMap<byte[], NavigableMap<byte[], NavigableMap<Long, byte[]>>>
>
> Take a look at the source code in Result.java
>
> On Wed, Jan 26, 2011 at 9:26 PM, Mark Kerzner <[email protected]>
> wrote:
>
> > Sure. At this line
> >
> > NavigableMap>> map =
> >                        value
> >                        .getMap();
> >
> > I get this:
> >
> > cannot find symbol
> >  symbol:   variable NavigableMap
> >  location: class com.mypackage.hadoop.HBaseUniqueVisitsMapper
> >
> > cannot find symbol
> >  symbol:   variable map
> >  location: class com.mypackage.hadoop.HBaseUniqueVisitsMapper
> >
> > unexpected type
> >  required: variable
> >  found:    value
> >
> > On Wed, Jan 26, 2011 at 11:20 PM, Ted Yu <[email protected]> wrote:
> >
> > > This is not new Java construct.
> > >
> > > Can you show us the compilation error ?
> > >
> > > On Wed, Jan 26, 2011 at 9:10 PM, Mark Kerzner <[email protected]>
> > > wrote:
> > >
> > > > Hi, I found this construct on the blog here,
> > > > http://allaboutdata.net/blog/?p=38, and I have no idea what it
> means.
> > > But
> > > > the documentation supports this and says
> > > >
> > > > getMap
> > > >
> > > > public
> > > NavigableMap<byte[],NavigableMap<byte[],NavigableMap<Long,byte[]>>>
> > > > getMap()
> > > > Map of families to all versions of its qualifiers and values.
> > > > Returns a three level Map of the form: Map>>
> > > >
> > > > this one, here,
> > > >
> > > >
> > >
> >
> http://hbase.apache.org/docs/r0.20.5/api/org/apache/hadoop/hbase/client/Result.html#getMap()
> <
> http://hbase.apache.org/docs/r0.20.5/api/org/apache/hadoop/hbase/client/Result.html#getMap%28%29
> >
> > > <
> > >
> >
> http://hbase.apache.org/docs/r0.20.5/api/org/apache/hadoop/hbase/client/Result.html#getMap%28%29
> > > >
> > > >
> > > > It does NOT compile for me :)
> > > >
> > > > Thank you.
> > > >
> > >
> >
>

Reply via email to