From 6a73d59a19b4cadc0e82d5cc39982d4b539800fb Mon Sep 17 00:00:00 2001 From: ramkrishna Date: Sat, 29 Dec 2012 04:39:41 +0000 Subject: [PATCH] HBASE-7258 Hbase needs to create baseZNode recursively (Liu Shaohui via Ram) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1426707 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java index 128a0d9f79c..4adda831e56 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java @@ -159,7 +159,7 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable { private void createBaseZNodes() throws ZooKeeperConnectionException { try { // Create all the necessary "directories" of znodes - ZKUtil.createAndFailSilent(this, baseZNode); + ZKUtil.createWithParents(this, baseZNode); ZKUtil.createAndFailSilent(this, assignmentZNode); ZKUtil.createAndFailSilent(this, rsZNode); ZKUtil.createAndFailSilent(this, drainingZNode);