accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-3779) Shell fails to connect to ZooKeeper when client.conf doesn't exist
Date Thu, 07 May 2015 20:26:00 GMT


Josh Elser commented on ACCUMULO-3779:

Another facet to this I found:

[jelser@cn020 accumulo-copy]$ ./bin/accumulo shell -u root -p secret --debug
2015-05-07 13:23:15,437 [zookeeper.ZooUtil] DEBUG: Trying to read instance id from hdfs://cn020:8020/accumulo/instance_id
2015-05-07 13:24:26,317 [tracer.ZooTraceClient] ERROR: Unabled to get destination tracer hosts
in ZooKeeper, will retry in 5000 milliseconds
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.ZooReader.exists(
	at org.apache.accumulo.tracer.ZooTraceClient.updateHostsFromZooKeeper(
	at org.apache.accumulo.tracer.ZooTraceClient$
	at org.apache.accumulo.tracer.ZooTraceClient.setInitialTraceHosts(
	at org.apache.accumulo.tracer.ZooTraceClient.<init>(
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.lang.reflect.Constructor.newInstance(
	at org.apache.accumulo.core.trace.DistributedTrace.loadSpanReceivers(
	at org.apache.accumulo.core.trace.DistributedTrace.enableTracing(
	at org.apache.accumulo.core.trace.DistributedTrace.enable(
	at org.apache.accumulo.start.Main$

The tracer might hang because it only observes the client.conf.

> Shell fails to connect to ZooKeeper when client.conf doesn't exist
> ------------------------------------------------------------------
>                 Key: ACCUMULO-3779
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>          Components: shell
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Blocker
>             Fix For: 1.7.0
> Stood up 1.7.0, forgot to make a client.conf (there wasn't a template included in the
example confs).
> Tried to connect to the shell and it just timed out trying to talk to ZooKeeper at the
default host of "localhost:2181". I feel like this is a regression against 1.6 because things
used to attempt to work by trying to read accumulo-site.xml.
> If we are intentionally not supporting automatic fallback to accumulo-site.xml, we should
have a log message that informs the user when we construct a ClientConfiguration without any
actual configuration (as that's likely an error).

This message was sent by Atlassian JIRA

View raw message