HBASE-11606 Enable ZK-less region assignment by default
This commit is contained in:
parent
9cc2b0ae9d
commit
7f9ec95831
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue