Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-1704

Better zk error when failed connect

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.0
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              stack stack
              Reporter:
              stack stack
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: