Copy the table, drop original, rename copy.

> On Mar 19, 2015, at 3:46 AM, Pankaj kr <pankaj...@huawei.com> wrote:
> 
> Thanks for the reply Ashish.
> 
> I can set EMPTY or NONE value using alter command. 
>       alter 't1', {NAME => 'cf1', ENCRYPTION => ''} 
>       alter 't1', {NAME => 'cf1', ENCRYPTION => 'NONE'}
> 
> But Exception will be thrown while opening the regions because 
> DefaultCipherProvider has below implementation,
> 
>  @Override
>  public Cipher getCipher(String name) {
>    if (name.equalsIgnoreCase("AES")) {
>      return new AES(this);
>    }
>    throw new RuntimeException("Cipher '" + name + "' is not supported by 
> provider '" +
>        getName() + "'");
>  }
> 
> Client will keep on waiting for all regions to be enabled in table t1.
> 
> Yeah we can set it through JAVA APIs. But I am looking for HBase shell option.
> 
> 
> Regards,
> Pankaj
> 
> -----Original Message-----
> From: ashish singhi 
> Sent: 19 March 2015 16:33
> To: Pankaj kr
> Subject: RE: How to remove a Column Family Property
> 
> I think with the current code in shell it is not possible.
> But You can try something by setting ENCRYPTION => ''
> But here it may long time to update u can enter ctrl+c (break the operation) 
> and then execute describe command you will see that ENCRYPTION is set to ''.
> But you can do this from java using, HColumnDescriptor#setEncryptionType.
> 
> I don't think it will be much useful for shell to support this Ideally at 
> production hbase shell is hardly used they generally use hbase client via 
> java.
> HBase shell is mainly for meant developers.
> 
> Regards
> Ashish
> 
> -----Original Message-----
> From: Pankaj kr [mailto:pankaj...@huawei.com] 
> Sent: 19 March 2015 12:24
> To: HBase User
> Subject: How to remove a Column Family Property
> 
> Hi,
> Suppose I have enabled encryption in a column family by setting "ENCRYPTION 
> => 'AES'".
> Now I want to disable encryption for this column family. How to do this 
> through HBase Shell?
> As per alter table syntax, at column family level we can add CFs, delete CFs 
> or set/modify  properties. How to remove a CFs property?
> 
>                Any help would be much appreciated.
> 
> Regards,
> Pankaj
> 

Reply via email to