hbase-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/HBASE-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

stack updated HBASE-1704:
-------------------------

    Attachment: 1704.patch

> 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
>
>         Attachments: 1704.patch
>
>
> 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