Shel does not support all table/column families attributes in 0.94.6

This should work:

HBaseAdmin admin = new HBaseAdmin(conf);
HTableDescriptor desc = 
admin.getTableDescriptor(Bytes.toBytes(SPLIT_TEST_BIG));// get your table 
descriptor
admin.disableTable(SPLIT_TEST_BIG);
desc.setValue(HTableDescriptor.SPLIT_POLICY, 
"org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy");
admin.modifyTable(Bytes.toBytes(SPLIT_TEST_BIG), desc);
admin.enableTable(SPLIT_TEST_BIG);

Best regards,
Vladimir Rodionov
Principal Platform Engineer
Carrier IQ, www.carrieriq.com
e-mail: [email protected]

________________________________________
From: WangRamon [[email protected]]
Sent: Tuesday, November 05, 2013 1:56 AM
To: [email protected]
Subject: How to change split policy of a specific existing table(not global)?‏

Hi Folks
I'm trying to change the default split policy of an existing table in HBase 
0.94.6-cdh4.4.0. The way i think should work is by using HBase Shell, so i 
executed the following command in the SHELL:
disable 'SPLIT_TEST_BIG'alter 'SPLIT_TEST_BIG', {METHOD => 'table_att', 
'SPLIT_POLICY' => 
'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy'}alter 
'SPLIT_TEST_BIG', {METHOD => 'table_att', 'MAX_FILESIZE' => 
'107374182400'}enable 'SPLIT_TEST_BIG'

But it doesn't work, only the 'MAX_FILESIZE' property get changed, the table 
still uses the default split policy which is 
'IncreasingToUpperBoundRegionSplitPolicy', so can anyone tell me what is the 
correct way to do it, thanks!
CheersRamon

Confidentiality Notice:  The information contained in this message, including 
any attachments hereto, may be confidential and is intended to be read only by 
the individual or entity to whom this message is addressed. If the reader of 
this message is not the intended recipient or an agent or designee of the 
intended recipient, please note that any review, use, disclosure or 
distribution of this message or its attachments, in any form, is strictly 
prohibited.  If you have received this message in error, please immediately 
notify the sender and/or [email protected] and delete or destroy any 
copy of this message and its attachments.

Reply via email to