Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-505 OzoneManager HA
  3. HDDS-3137

OM RpcClient fail with java.lang.IllegalArgumentException

    XMLWordPrintableJSON

Details

    Description

      In OM HA cluster, when one of the om service is down, during creation of RpcClient it will fail with below error.

       

       

      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
       
      

       

      Attachments

        Issue Links

          Activity

            People

              bharat Bharat Viswanadham
              bharat Bharat Viswanadham
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m