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

FSCK Report broken with RequestHedgingProxyProvider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.8.3, 3.0.0, 3.1.0
    • None
    • hdfs

    Description

      Scenario:-

      1.Configure the RequestHedgingProxy

      2. write some files in file system

      3. Take FSCK report for the above files

       

      bin> hdfs fsck /file1 -locations -files -blocks
      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:626)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.getConnectionId(RetryInvocationHandler.java:438)
      at org.apache.hadoop.ipc.RPC.getConnectionIdForProxy(RPC.java:628)
      at org.apache.hadoop.ipc.RPC.getServerAddress(RPC.java:611)
      at org.apache.hadoop.hdfs.HAUtil.getAddressOfActive(HAUtil.java:263)
      at org.apache.hadoop.hdfs.tools.DFSck.getCurrentNamenodeAddress(DFSck.java:257)
      at org.apache.hadoop.hdfs.tools.DFSck.doWork(DFSck.java:319)
      at org.apache.hadoop.hdfs.tools.DFSck.access$000(DFSck.java:72)
      at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:156)
      at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1836)
      at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:152)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
      at org.apache.hadoop.hdfs.tools.DFSck.main(DFSck.java:385)

       

      Attachments

        1. HDFS-13369.007.patch
          16 kB
          Ranith Sardar
        2. HDFS-13369.006.patch
          18 kB
          Ranith Sardar
        3. HDFS-13369.005.patch
          17 kB
          Ranith Sardar
        4. HDFS-13369.004.patch
          30 kB
          Ranith Sardar
        5. HDFS-13369.003.patch
          15 kB
          Ranith Sardar
        6. HDFS-13369.002.patch
          5 kB
          Ranith Sardar
        7. HDFS-13369.001.patch
          5 kB
          Ranith Sardar

        Issue Links

          Activity

            People

              RANith Ranith Sardar
              Harsha1206 Harshakiran Reddy
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: