[ 
https://issues.apache.org/jira/browse/HBASE-12412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14319775#comment-14319775
 ] 

Jingcheng Du commented on HBASE-12412:
--------------------------------------

Thanks [~misty].
I think we have to introduce the new API modifyFamily of HTableDescriptor, how 
about to change the code to
{code}
    // Update existing CF
    HColumnDescriptor newColumn = new HColumnDescriptor(CF_DEFAULT);
    newColumn.setCompactionCompressionType(Algorithm.GZ);
    newColumn.setMaxVersions(HConstants.ALL_VERSIONS);
    table_assetmeta.modifyFamily(newColumn)
    admin.modifyTable(tableName, table_assetmeta);
{code}

> update the ref guide(currently Example 10.2) to show "update an existing CF" 
> with the new API modifyFamily in master
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-12412
>                 URL: https://issues.apache.org/jira/browse/HBASE-12412
>             Project: HBase
>          Issue Type: Bug
>          Components: documentation
>            Reporter: Jingcheng Du
>            Assignee: Misty Stanley-Jones
>            Priority: Minor
>         Attachments: HBASE-12412.patch
>
>
> In the new implementation of HTableDescriptor, updating an existing CF 
> doesn't use the addFamily any more(An IllegalArgumentException is thrown in 
> such a case.), the new API modifyFamily is used instead.
> We need to update the ref guide (currently Example 10.2) to show "update an 
> existing CF" with the new API modifyFamily in master.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to