Can you verify that zookeeper is running and accepting connections?

nc [zk-host] [zk-port]
> stat

And see that it does not result in error.

On Mon, Feb 2, 2015 at 2:58 PM, Wyatt Frelot <wyatt.fre...@altamiracorp.com>
wrote:

>  Good afternoon all,
>
>  I just literally started having this problem on Friday. My code worked
> previously (1mo ago) but I came back to it and I have not been able to
> resolve this problem since I have started experiencing it. So, I am seeking
> guidance and assistance.
>
>  I have a Vagrant cluster setup with the following environment:
> Hadoop 2.4.1, ZK 3.3.6, Accumulo 1.6.1, and Java 7
>
>  I am able to ping the zookeeper node and there appears to be nothing in
> the ZK logs nor the Accumulo logsā€¦I am not sure where to go from here.
>
>  This is the only error that I can find:
>
>  Exception in thread "main"
> org.apache.accumulo.core.client.AccumuloException:
> java.lang.RuntimeException: Failed to connect to zookeeper (mnode) within
> 2x zookeeper timeout period 30000
>  at org.apache.accumulo.core.client.impl.ServerClient.execute(
> ServerClient.java:67)
>  at org.apache.accumulo.core.client.impl.ConnectorImpl.<init>(
> ConnectorImpl.java:70)
>  at org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(
> ZooKeeperInstance.java:240)
>  at accumulo101.solutions.writing.TableAdministration.main(
> TableAdministration.java:66)
>  Caused by: java.lang.RuntimeException: Failed to connect to zookeeper
> (mnode) within 2x zookeeper timeout period 30000
>  at org.apache.accumulo.fate.zookeeper.ZooSession.connect(
> ZooSession.java:117)
>  at org.apache.accumulo.fate.zookeeper.ZooSession.getSession(
> ZooSession.java:161)
>  at org.apache.accumulo.fate.zookeeper.ZooReader.getSession(
> ZooReader.java:35)
>  at org.apache.accumulo.fate.zookeeper.ZooReader.getZooKeeper(
> ZooReader.java:39)
>  at org.apache.accumulo.fate.zookeeper.ZooCache.getZooKeeper(
> ZooCache.java:58)
>  at org.apache.accumulo.fate.zookeeper.ZooCache.retry(ZooCache.java:150)
>  at org.apache.accumulo.fate.zookeeper.ZooCache.get(ZooCache.java:277)
>  at org.apache.accumulo.fate.zookeeper.ZooCache.get(ZooCache.java:224)
>  at org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceID(
> ZooKeeperInstance.java:161)
>  at org.apache.accumulo.core.zookeeper.ZooUtil.getRoot(ZooUtil.java:38)
>  at org.apache.accumulo.core.client.impl.ServerClient.getConnection(
> ServerClient.java:128)
>  at org.apache.accumulo.core.client.impl.ServerClient.getConnection(
> ServerClient.java:118)
>  at org.apache.accumulo.core.client.impl.ServerClient.getConnection(
> ServerClient.java:113)
>  at org.apache.accumulo.core.client.impl.ServerClient.executeRaw(
> ServerClient.java:95)
>  at org.apache.accumulo.core.client.impl.ServerClient.execute(
> ServerClient.java:61)
>  ... 3 more
>
>

Reply via email to