[
https://issues.apache.org/jira/browse/HBASE-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775187#action_12775187
]
stack commented on HBASE-1965:
------------------------------
Here's a hack patch:
{code}
Index: src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java
===================================================================
--- src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java
(revision 833622)
+++ src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java
(working copy)
@@ -501,6 +501,11 @@
LOG.warn("Failed to create out of safe mode in ZooKeeper: " + e);
} catch (KeeperException e) {
LOG.warn("Failed to create out of safe mode in ZooKeeper: " + e);
+ if (e.getMessage().contains("KeeperErrorCode = NodeExists")) {
+ LOG.info("Node exists; just move on");
+ return true;
+ }
+
}
{code}
It does this:
{code}
2009-11-09 23:23:37,868 [IPC Server handler 8 on 60001] WARN
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Failed to create out of
safe mode in ZooKeeper:
org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode =
NodeExists for /hbase/safe-mode
2009-11-09 23:23:37,868 [IPC Server handler 8 on 60001] INFO
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Node exists; just move on
{code}
Seems to work.
This is for branch only. Safe-mode is gone in TRUNK
> On restart of branch, master complains about not being able to set safe mode
> ----------------------------------------------------------------------------
>
> Key: HBASE-1965
> URL: https://issues.apache.org/jira/browse/HBASE-1965
> Project: Hadoop HBase
> Issue Type: Bug
> Reporter: stack
>
> A few fellows have reported this issue. I see it myself if I restart the
> cluster. You'll see:
> {code}
> ZooKeeperWrapper: Failed to create out of safe mode in ZooKeeper:
> org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode =
> NodeExists for /hbase/safe-mode
> {code}
> ... over and over again in master log.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.