You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by 陈加俊 <cj...@gmail.com> on 2011/04/12 10:54:49 UTC

How to add family on HBase-0.90.2

 I can add family by follow command In HBase-0.20.6

>alter 'cjjHTML', {NAME => 'responseHeader', METHOD => 'add'}

But in HBase-0.90.2 I can't do it . How ?

-- 
Thanks & Best regards
jiajun

Re: How to add family on HBase-0.90.2

Posted by Jean-Daniel Cryans <jd...@apache.org>.
No, all I say is that you don't need the METHOD, eg this will work in
both 0.20 and 0.90:

>alter 'cjjHTML', {NAME => 'responseHeader'}

J-D

On Tue, Apr 12, 2011 at 4:39 PM, 陈加俊 <cj...@gmail.com> wrote:
> So there is no method to add family for a table?
> I need to drop the table and create it If I want to add another family to a
> table ? How to keep the data in the table before?
>
> On Wed, Apr 13, 2011 at 2:31 AM, Jean-Daniel Cryans <jd...@apache.org>wrote:
>
>> No need to specify the method for adding, it wasn't required in 0.20.6
>> either so if it was accepting it it was a bug.
>>
>> J-D
>>
>> On Tue, Apr 12, 2011 at 1:54 AM, 陈加俊 <cj...@gmail.com> wrote:
>> >  I can add family by follow command In HBase-0.20.6
>> >
>> >>alter 'cjjHTML', {NAME => 'responseHeader', METHOD => 'add'}
>> >
>> > But in HBase-0.90.2 I can't do it . How ?
>> >
>> > --
>> > Thanks & Best regards
>> > jiajun
>> >
>>
>
>
>
> --
> Thanks & Best regards
> jiajun
>

Re: How to add family on HBase-0.90.2

Posted by 陈加俊 <cj...@gmail.com>.
So there is no method to add family for a table?
I need to drop the table and create it If I want to add another family to a
table ? How to keep the data in the table before?

On Wed, Apr 13, 2011 at 2:31 AM, Jean-Daniel Cryans <jd...@apache.org>wrote:

> No need to specify the method for adding, it wasn't required in 0.20.6
> either so if it was accepting it it was a bug.
>
> J-D
>
> On Tue, Apr 12, 2011 at 1:54 AM, 陈加俊 <cj...@gmail.com> wrote:
> >  I can add family by follow command In HBase-0.20.6
> >
> >>alter 'cjjHTML', {NAME => 'responseHeader', METHOD => 'add'}
> >
> > But in HBase-0.90.2 I can't do it . How ?
> >
> > --
> > Thanks & Best regards
> > jiajun
> >
>



-- 
Thanks & Best regards
jiajun

Re: How to add family on HBase-0.90.2

Posted by Jean-Daniel Cryans <jd...@apache.org>.
No need to specify the method for adding, it wasn't required in 0.20.6
either so if it was accepting it it was a bug.

J-D

On Tue, Apr 12, 2011 at 1:54 AM, 陈加俊 <cj...@gmail.com> wrote:
>  I can add family by follow command In HBase-0.20.6
>
>>alter 'cjjHTML', {NAME => 'responseHeader', METHOD => 'add'}
>
> But in HBase-0.90.2 I can't do it . How ?
>
> --
> Thanks & Best regards
> jiajun
>