You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2008/09/05 00:27:44 UTC

[jira] Commented: (HBASE-871) Major configuration periodicity should be specifyable at the column family level, not cluster wide

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

stack commented on HBASE-871:
-----------------------------

A patch should do like the following. 

In the HStore constructor, it does this to get the major compaction time:

{code}
    this.majorCompactionTime = conf.getLong("hbase.hregion.majorcompaction", 86400000);
{code}

Just below it, it does this to get the config. for compression from HCD:

{code}
family.getCompression()
{code}

I'd think you'd do something like:

{code}
family.getValue("hbase.hregion.majorcompaction")
{code}

... if it came back null, you'd use the default.  Otherwise, use its value.

Add a define to HConstants for "hbase.hregion.majorcompaction" to make your life easier.

That takes care of the reading.

For setting it, the addtion to HConstants will help.  See the head of bin/HBase.rb.  See how we define constants there, constants that can then be used specifying stuff in the shell..

> Major configuration periodicity should be specifyable at the column family level, not cluster wide
> --------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-871
>                 URL: https://issues.apache.org/jira/browse/HBASE-871
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>
> jon gray has a table of ten rows and a couple of columns that is constantly being updated.  Has max versions of 2.  This table is growing fast because all versions written are kept until a major compaction.  The way this table is being used is different than that of others.  Would be good if he could have major compactions run more often than the default once a day.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.