hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "clockfly (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8176) Backport HBASE-5335 "Dynamic Schema Configurations"
Date Fri, 29 Mar 2013 06:59:16 GMT

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

clockfly commented on HBASE-8176:
---------------------------------

@Ted, thanks for pointting out the test error, I made a mistake, I neglected the largeTest
category test. Now, all UT and integration test passes.

@Andrew, the shell syntax is completely compatible with before, it extends the function by
adding a new attribute "CONFIG", while old attributes still works.

@Lars and Andrew,
I have updated the HBase shell context help in the patch:
{quote}
 or a shorter version:
 
   hbase> alter 't1', 'delete' => 'f1'
+  
+You can also change the column family config by set attribute CONFIG like this:
+  hbase> alter 'test',  NAME=>'f', CONFIG => {'hbase.hstore.compaction.min' =>
'5'}
 
 You can also change table-scope attributes like MAX_FILESIZE
 MEMSTORE_FLUSHSIZE, READONLY, and DEFERRED_LOG_FLUSH.
@@ -47,6 +50,9 @@
 For example, to change the max size of a family to 128MB, do:
 
   hbase> alter 't1', METHOD => 'table_att', MAX_FILESIZE => '134217728'
+  
+You can also change the table-scope by set attribute CONFIG like this:
+  hbase> alter 'test', METHOD=>'table_att', CONFIG => {'hbase.hstore.compaction.min'
=> '5'}  
{quote}

Here is the suggested release notes for this patch:
{quote}
Release notes:
With HBASE-8176("Dynamic Schema Configurations"), we can define table/column family specific
configuration by HColumnDescriptor.setValue() or HTableDescriptor.setValue().
We can also do this easily in hbase shell, like this:
Change the table-scope by set attribute CONFIG like this:
alter 'test', METHOD => 'table_att', CONFIG => {'hbase.hstore.compaction.min' =>
'5'}

Change the column family config by set attribute CONFIG like this:a
alter 'test',  NAME => 'f', CONFIG => {'hbase.hstore.compaction.min' => a'5'}
{quote}
                
> Backport HBASE-5335 "Dynamic Schema Configurations"
> ---------------------------------------------------
>
>                 Key: HBASE-8176
>                 URL: https://issues.apache.org/jira/browse/HBASE-8176
>             Project: HBase
>          Issue Type: Bug
>          Components: regionserver
>    Affects Versions: 0.94.5
>            Reporter: clockfly
>            Assignee: clockfly
>            Priority: Minor
>             Fix For: 0.94.7
>
>         Attachments: hbase-8176.patch
>
>
> With HBASE-5335, we can support per-table configuration and per-family configurations.
> We can use it to customize the compaction on table/family basis, customize the flush,
and etc..

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message