accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-3763) Accumulo shell shouldn't let you into the command line if it can't connect to zookeeper
Date Thu, 30 Apr 2015 20:30:06 GMT


Christopher Tubbs commented on ACCUMULO-3763:

I'm trying to reproduce this. On 1.5 through 1.7, my JVM exits with something like (this stack
trace is from 1.7 (4d1acd14)):

Exception in thread "main" java.lang.IllegalArgumentException: Unable to load client config
from null
Caused by: java.lang.RuntimeException: Failed to connect to zookeeper (localhost:2181) within
2x zookeeper timeout period 30000
	at org.apache.accumulo.fate.zookeeper.ZooSession.connect(
	at org.apache.accumulo.fate.zookeeper.ZooSession.getSession(
	at org.apache.accumulo.fate.zookeeper.ZooReader.getSession(
	at org.apache.accumulo.fate.zookeeper.ZooReader.getZooKeeper(
	at org.apache.accumulo.fate.zookeeper.ZooCache.getZooKeeper(
	at org.apache.accumulo.fate.zookeeper.ZooCache.retry(
	at org.apache.accumulo.fate.zookeeper.ZooCache.get(
	at org.apache.accumulo.fate.zookeeper.ZooCache.get(
	at org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceID(
	at org.apache.accumulo.core.client.ZooKeeperInstance.<init>(
	at org.apache.accumulo.core.client.ZooKeeperInstance.<init>(
	... 3 more

The message is a bit misleading, but the cause and the stack trace shows clearly why it failed.
So, I'm not able to reproduce the problem. Did you have any local modifications at the time?

If you're able to reproduce it, and you can get a stack trace for the error, that could be

> Accumulo shell shouldn't let you into the command line if it can't connect to zookeeper
> ---------------------------------------------------------------------------------------
>                 Key: ACCUMULO-3763
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.7.0
>            Reporter: Tristen Georgiou
>              Labels: newbie
> Ran the MiniAccumuloRunner without specifying a properties file so that it started ZooKeeper
on a random port.
> Attempted to run the Shell command and passed in the zookeeper instance name and zookeeper
host and port (the shell ignored the port BTW...maybe another bug?) and it threw an error
that it couldn't connect to ZooKeeper, but it still passed me into the shell and let me run

This message was sent by Atlassian JIRA

View raw message