HBASE-4263 New config property for user-table only RegionObservers

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1163908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-09-01 05:37:50 +00:00
parent 7b9a82d8df
commit 0aa92ed25d
3 changed files with 10 additions and 0 deletions

View File

@ -428,6 +428,8 @@ Release 0.91.0 - Unreleased
readable (todd)
HBASE-4281 Add facility to dump current state of all executors (todd)
HBASE-4275 RS should communicate fatal "aborts" back to the master (todd)
HBASE-4263 New config property for user-table only RegionObservers
(Lars Hofhansl)
TASKS
HBASE-3559 Move report of split to master OFF the heartbeat channel

View File

@ -51,6 +51,8 @@ import java.util.*;
public abstract class CoprocessorHost<E extends CoprocessorEnvironment> {
public static final String REGION_COPROCESSOR_CONF_KEY =
"hbase.coprocessor.region.classes";
public static final String USER_REGION_COPROCESSOR_CONF_KEY =
"hbase.coprocessor.user.region.classes";
public static final String MASTER_COPROCESSOR_CONF_KEY =
"hbase.coprocessor.master.classes";
public static final String WAL_COPROCESSOR_CONF_KEY =

View File

@ -27,6 +27,7 @@ import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HRegionInfo;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.Coprocessor;
import org.apache.hadoop.hbase.HConstants;
@ -113,6 +114,11 @@ public class RegionCoprocessorHost
// load system default cp's from configuration.
loadSystemCoprocessors(conf, REGION_COPROCESSOR_CONF_KEY);
// load system default cp's for user tables from configuration.
if (!HTableDescriptor.isMetaTable(region.getRegionInfo().getTableName())) {
loadSystemCoprocessors(conf, USER_REGION_COPROCESSOR_CONF_KEY);
}
// load Coprocessor From HDFS
loadTableCoprocessors(conf);
}