hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-1704) Better zk error when failed connect
Date Sat, 25 Jul 2009 02:40:15 GMT
Better zk error when failed connect
-----------------------------------

                 Key: HBASE-1704
                 URL: https://issues.apache.org/jira/browse/HBASE-1704
             Project: Hadoop HBase
          Issue Type: Bug
            Reporter: stack
             Fix For: 0.20.0


>From a discussion with Ken Weiner up on hbase-user:

Index: src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java
===================================================================
--- src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java    (revision 797665)
+++ src/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWrapper.java    (working copy)
@@ -348,9 +348,11 @@
     } catch (KeeperException.NoNodeException e) {
       return ensureParentExists(znode) && ensureExists(znode);
     } catch (KeeperException e) {
-      LOG.warn("Failed to create " + znode + ":", e);
+      LOG.warn("Failed to create " + znode +
+        " -- check quorum servers, currenty=" + this.quorumServers, e);
     } catch (InterruptedException e) {
-      LOG.warn("Failed to create " + znode + ":", e);
+      LOG.warn("Failed to create " + znode +
+        " -- check quorum servers, currenty=" + this.quorumServers, e);
     }
     return false;
   }

Looks like this in logs:

2009-07-24 14:48:40,923 WARN org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Failed to
create /hbase -- check quorum servers, currenty=localhost:2181

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
for /hbase

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message