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 Fri, 05 Sep 2008 19:58:44 GMT

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

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

Suggest that this piece of your patch...

{code}
    if (family.getValue(MAJOR_COMPACTION_PERIOD) != null) {
      String strCompactionTime = family.getValue(HConstants.MAJOR_COMPACTION_PERIOD);
      this.majorCompactionTime = (new Long(strCompactionTime)).longValue();
    }
{code}

... go in under this line of code:

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

Also, use the new define in the line above now you've added it to HConstants.

We need to change the shell so you can pass arbitrary key/values to HCD and HTD but let that
be another issue, HBASE-873

> 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
>            Assignee: Jonathan Gray
>         Attachments: hbase-871-v1.patch, hbase-871-v2.patch
>
>
> 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