Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9836

RequestHedgingInvocationHandler can't be cast to org.apache.hadoop.ipc.RpcInvocationHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • 2.8.0
    • None
    • ha
    • None

    Description

      RequestHedgingInvocationHandler cannot be cast to org.apache.hadoop.ipc.RpcInvocationHandler

      Reproduce steps:
      1: Set client failover provider as RequestHedgingProxyProvider.
      <property>
      <name>dfs.client.failover.proxy.provider.[nameservice]</name>
      <value>org.apache.hadoop.hdfs.server.namenode.ha.RequestHedgingProxyProvider</value>
      </property>

      2: run hdfs fsck / will get following exceptions.
      Exception in thread "main" java.lang.ClassCastException: org.apache.hadoop.hdfs.server.namenode.ha.RequestHedgingProxyProvider$RequestHedgingInvocationHandler cannot be cast to org.apache.hadoop.ipc.RpcInvocationHandler
      at org.apache.hadoop.ipc.RPC.getConnectionIdForProxy(RPC.java:613)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.getConnectionId(RetryInvocationHandler.java:281)
      at org.apache.hadoop.ipc.RPC.getConnectionIdForProxy(RPC.java:615)
      at org.apache.hadoop.ipc.RPC.getServerAddress(RPC.java:598)
      at org.apache.hadoop.hdfs.HAUtil.getAddressOfActive(HAUtil.java:380)
      at org.apache.hadoop.hdfs.tools.DFSck.getCurrentNamenodeAddress(DFSck.java:248)
      at org.apache.hadoop.hdfs.tools.DFSck.doWork(DFSck.java:255)
      at org.apache.hadoop.hdfs.tools.DFSck.access$000(DFSck.java:72)
      at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:148)
      at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:145)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:415)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671)
      at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:144)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
      at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:360)

      Attachments

        1. HDFS-9836-000.patch
          2 kB
          Guocui Mi
        2. HDFS-9836-001.patch
          4 kB
          Guocui Mi

        Issue Links

          Activity

            People

              Guocui Guocui Mi
              Guocui Guocui Mi
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: