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

Better zk error when failed connect

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment