Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Won't Fix
-
2.8.0
-
None
-
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
Attachments
Issue Links
- is related to
-
HDFS-7858 Improve HA Namenode Failover detection on the client
- Resolved
- relates to
-
HDFS-13369 FSCK Report broken with RequestHedgingProxyProvider
- Resolved