accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/ACCUMULO-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14522193#comment-14522193
] 

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)):

{code:java}
Exception in thread "main" java.lang.IllegalArgumentException: Unable to load client config
from null
	at org.apache.accumulo.shell.Shell.setInstance(Shell.java:454)
	at org.apache.accumulo.shell.Shell.config(Shell.java:306)
	at org.apache.accumulo.shell.Shell.execute(Shell.java:557)
	at org.apache.accumulo.shell.Shell.main(Shell.java:569)
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(ZooSession.java:124)
	at org.apache.accumulo.fate.zookeeper.ZooSession.getSession(ZooSession.java:164)
	at org.apache.accumulo.fate.zookeeper.ZooReader.getSession(ZooReader.java:43)
	at org.apache.accumulo.fate.zookeeper.ZooReader.getZooKeeper(ZooReader.java:47)
	at org.apache.accumulo.fate.zookeeper.ZooCache.getZooKeeper(ZooCache.java:59)
	at org.apache.accumulo.fate.zookeeper.ZooCache.retry(ZooCache.java:159)
	at org.apache.accumulo.fate.zookeeper.ZooCache.get(ZooCache.java:292)
	at org.apache.accumulo.fate.zookeeper.ZooCache.get(ZooCache.java:238)
	at org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceID(ZooKeeperInstance.java:169)
	at org.apache.accumulo.core.client.ZooKeeperInstance.<init>(ZooKeeperInstance.java:159)
	at org.apache.accumulo.core.client.ZooKeeperInstance.<init>(ZooKeeperInstance.java:140)
	at org.apache.accumulo.shell.Shell.getZooInstance(Shell.java:484)
	at org.apache.accumulo.shell.Shell.setInstance(Shell.java:452)
	... 3 more
{code}

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
useful.

> Accumulo shell shouldn't let you into the command line if it can't connect to zookeeper
> ---------------------------------------------------------------------------------------
>
>                 Key: ACCUMULO-3763
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3763
>             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
commands.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message