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

Better zk error when failed connect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.20.0
    • None
    • 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

        1. 1704.patch
          0.9 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: