You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Xiaoyu Yao (Jira)" <ji...@apache.org> on 2020/03/20 03:30:00 UTC

[jira] [Resolved] (HDDS-3137) OM RpcClient fail with java.lang.IllegalArgumentException

     [ https://issues.apache.org/jira/browse/HDDS-3137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiaoyu Yao resolved HDDS-3137.
------------------------------
    Fix Version/s: 0.6.0
       Resolution: Fixed

Thanks [~bharat] for the contribution. I've merged the PR to master. 

> OM RpcClient fail with java.lang.IllegalArgumentException
> ---------------------------------------------------------
>
>                 Key: HDDS-3137
>                 URL: https://issues.apache.org/jira/browse/HDDS-3137
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>          Components: HA
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Blocker
>              Labels: OMHATest, pull-request-available
>             Fix For: 0.6.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In OM HA cluster, when one of the om service is down, during creation of RpcClient it will fail with below error.
>  
>  
> {code:java}
> java.lang.IllegalArgumentException: java.net.UnknownHostException: om1
>  at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:447)
>  at org.apache.hadoop.ozone.om.ha.OMProxyInfo.<init>(OMProxyInfo.java:40)
>  at org.apache.hadoop.ozone.om.ha.OMFailoverProxyProvider.loadOMClientConfigs(OMFailoverProxyProvider.java:115)
>  at org.apache.hadoop.ozone.om.ha.OMFailoverProxyProvider.<init>(OMFailoverProxyProvider.java:83)
>  at org.apache.hadoop.ozone.om.protocolPB.OzoneManagerProtocolClientSideTranslatorPB.<init>(OzoneManagerProtocolClientSideTranslatorPB.java:207)
>  at org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:153)
>  at org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:198)
>  at org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:124)
>  at org.apache.hadoop.ozone.freon.RandomKeyGenerator.init(RandomKeyGenerator.java:249)
>  at org.apache.hadoop.ozone.freon.RandomKeyGenerator.call(RandomKeyGenerator.java:274)
>  at org.apache.hadoop.ozone.freon.RandomKeyGenerator.call(RandomKeyGenerator.java:82)
>  at picocli.CommandLine.execute(CommandLine.java:1173)
>  at picocli.CommandLine.access$800(CommandLine.java:141)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:1367)
>  at picocli.CommandLine$RunLast.handle(CommandLine.java:1335)
>  at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243)
>  at picocli.CommandLine.parseWithHandlers(CommandLine.java:1526)
>  at picocli.CommandLine.parseWithHandler(CommandLine.java:1465)
>  at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:65)
>  at org.apache.hadoop.ozone.freon.Freon.execute(Freon.java:72)
>  at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:56)
>  at org.apache.hadoop.ozone.freon.Freon.main(Freon.java:98)
> Caused by: java.net.UnknownHostException: om1
>  ... 22 more
>  
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org