hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-871) Major configuration periodicity should be specifyable at the column family level, not cluster wide
Date Thu, 04 Sep 2008 22:27:44 GMT

    [ 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.


Mime
View raw message