Try:

hbase(main):005:0> get 'crawltable', 'com.onsoft.www:http/', { COLUMNS =>
'stt:'}

i.e. '=>' rather than '='.  Also, its COLUMNS (uppercase I believe) rather
than column.

Run 'help' in the shell for help and examples.

St.Ack

On Tue, Dec 15, 2009 at 11:53 AM, Ted Yu <[email protected]> wrote:

> Hi,
> I saw the following from scan 'crawltable' command in hbase shell:
> ...
>  com.onsoft.www:http/        column=stt:, timestamp=1260405530801,
> value=\003
> 3 row(s) in 0.2490 seconds
>
> How do I query the value for stt column ?
>
> hbase(main):005:0> get 'crawltable', 'com.onsoft.www:http/', {
> column='stt:'
> }
> SyntaxError: (hbase):6: odd number list for Hash.
>        from (hbase):6
>
> Can someone explain this 'odd number' error ?
>
> Thanks
>
> On Mon, Dec 14, 2009 at 10:16 PM, stack <[email protected]> wrote:
>
> > Are you using hbase 0.20?  If so, there is no 'compress'.  Its NONE, LZO,
> > or
> > GZIP (You'll have to build lzo yourself.  See hbase wiki for how).
> >
> > See the shell help.  It has examples of how to change parameters on
> column
> > families.
> >
> > St.Ack
> >
> > 2009/12/14 Xin Jing <[email protected]>
> >
> > > Hi all,
> > >
> > > I want to change the column family property for a existing hbase table.
> > > Setting one comlumn family COMPRESSION from 'none' to comress, and
> chagne
> > > one column family IN_MEMORY from 'false' to 'true'.
> > >
> > > I want to use hbase shell to achieve that, but I cannot find the
> detailed
> > > description on 'alter' command. Could anyone point me to a reference on
> > > that?
> > >
> > > Thanks
> > > - Xin
> > >
> >
>

Reply via email to