You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2020/01/19 18:31:12 UTC
[GitHub] [accumulo] arvindshmicrosoft commented on issue #1478: Validate
ClientOpts instance name and Zookeeper paths
arvindshmicrosoft commented on issue #1478: Validate ClientOpts instance name and Zookeeper paths
URL: https://github.com/apache/accumulo/pull/1478#issuecomment-576032592
For context, this issue manifested itself as an error when running zoozap -traces on 1.9.3 clusters:
$ accumulo org.apache.accumulo.server.util.ZooZap -tracers
2020-01-19 18:14:45,289 [client.ClientConfiguration] INFO : Loaded client configuration file /opt/muchos/install/accumulo-1.9.3/conf/client.conf
2020-01-19 18:14:46,486 [client.ClientConfiguration] INFO : Loaded client configuration file /opt/muchos/install/accumulo-1.9.3/conf/client.conf
2020-01-19 18:14:46,487 [start.Main] ERROR: Thread 'org.apache.accumulo.server.util.ZooZap' died.
java.lang.IllegalArgumentException: instanceName is null
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:92)
at org.apache.accumulo.core.client.ClientConfiguration.withInstance(ClientConfiguration.java:488)
at org.apache.accumulo.core.cli.ClientOpts.getClientConfiguration(ClientOpts.java:405)
at org.apache.accumulo.server.util.ZooZap$Opts.getTraceZKPath(ZooZap.java:58)
at org.apache.accumulo.server.util.ZooZap.main(ZooZap.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.accumulo.start.Main$2.run(Main.java:170)
at java.lang.Thread.run(Thread.java:748)
After some debugging it was apparent that the code path in ClientOpts is not handling the case when the default client configuration files are being used. This fix ensures that both cases (using default client conf file and explicitly passing in instance name + ZK paths) work.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services