[
https://issues.apache.org/jira/browse/HDDS-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16532583#comment-16532583
]
Elek, Marton commented on HDDS-62:
----------------------------------
If there is no HEALTHY datanode, the rest client doesn't work:
{code}
docker-compose exec ksm ozone oz -listVolume http://ksm/
{code}
{code}
2018-07-04 08:28:21 WARN NativeCodeLoader:60 - Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable
2018-07-04 08:28:22 ERROR OzoneClientFactory:295 - Couldn't create protocol
class org.apache.hadoop.ozone.client.rest.RestClient exception:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:292)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getRestClient(OzoneClientFactory.java:248)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getRestClient(OzoneClientFactory.java:232)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getRestClient(OzoneClientFactory.java:206)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getRestClient(OzoneClientFactory.java:188)
at
org.apache.hadoop.ozone.web.ozShell.Handler.verifyURI(Handler.java:85)
at
org.apache.hadoop.ozone.web.ozShell.volume.ListVolumeHandler.execute(ListVolumeHandler.java:80)
at org.apache.hadoop.ozone.web.ozShell.Shell.dispatch(Shell.java:395)
at org.apache.hadoop.ozone.web.ozShell.Shell.run(Shell.java:135)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hadoop.ozone.web.ozShell.Shell.main(Shell.java:114)
Caused by: java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Random.java:388)
at
org.apache.hadoop.ozone.client.rest.DefaultRestServerSelector.getRestServer(DefaultRestServerSelector.java:34)
at
org.apache.hadoop.ozone.client.rest.RestClient.getOzoneRestServerAddress(RestClient.java:199)
at
org.apache.hadoop.ozone.client.rest.RestClient.<init>(RestClient.java:160)
... 16 more
Command Failed : Couldn't create protocol class
org.apache.hadoop.ozone.client.rest.RestClient
{code}
Do we need a separated jira for this?
> Cleanup error messages
> -----------------------
>
> Key: HDDS-62
> URL: https://issues.apache.org/jira/browse/HDDS-62
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Components: SCM
> Affects Versions: 0.2.1
> Reporter: Anu Engineer
> Assignee: Anu Engineer
> Priority: Major
> Labels: OzonePostMerge
>
> Many error messages thrown from ozone are written for developers by
> developers. We need to review all publicly visible error messages to make
> sure it correct, includes enough context (stack traces do not count) and
> makes sense for the reader.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]