HBASE-11606 Enable ZK-less region assignment by default

This commit is contained in:
Jimmy Xiang 2014-07-28 16:55:49 -07:00
parent 9cc2b0ae9d
commit 7f9ec95831
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable {
try {
// Create all the necessary "directories" of znodes
ZKUtil.createWithParents(this, baseZNode);
if (conf.getBoolean("hbase.assignment.usezk", true)) {
if (conf.getBoolean("hbase.assignment.usezk", false)) {
ZKUtil.createAndFailSilent(this, assignmentZNode);
}
ZKUtil.createAndFailSilent(this, rsZNode);

View File

@ -28,6 +28,6 @@ public class ConfigUtil {
public static boolean useZKForAssignment(Configuration conf) {
// To change the default, please also update ZooKeeperWatcher.java
return conf.getBoolean("hbase.assignment.usezk", true);
return conf.getBoolean("hbase.assignment.usezk", false);
}
}