Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1, 3.4.0
    • rbf
    • HA is enabled

    • Reviewed

    Description

      After HDFS-14442 fsck uses getHAServiceState operation to detect Active NameNode, however, DFSRouter does not support the operation.

      20/10/05 16:41:30 DEBUG hdfs.HAUtil: Error while connecting to namenode
      org.apache.hadoop.ipc.RemoteException(java.lang.UnsupportedOperationException): Operation "getHAServiceState" is not supported
      	at org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.checkOperation(RouterRpcServer.java:488)
      	at org.apache.hadoop.hdfs.server.federation.router.RouterClientProtocol.getHAServiceState(RouterClientProtocol.java:1773)
      	at org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.getHAServiceState(RouterRpcServer.java:1333)
      	at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getHAServiceState(ClientNamenodeProtocolServerSideTranslatorPB.java:2011)
      	at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
      	at org.apache.hadoop.ipc.ProtobufRpcEngine2$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine2.java:532)
      	at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1070)
      	at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:1020)
      	at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:948)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/javax.security.auth.Subject.doAs(Subject.java:423)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1845)
      	at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2952)
      
      	at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1562)
      	at org.apache.hadoop.ipc.Client.call(Client.java:1508)
      	at org.apache.hadoop.ipc.Client.call(Client.java:1405)
      	at org.apache.hadoop.ipc.ProtobufRpcEngine2$Invoker.invoke(ProtobufRpcEngine2.java:234)
      	at org.apache.hadoop.ipc.ProtobufRpcEngine2$Invoker.invoke(ProtobufRpcEngine2.java:119)
      	at com.sun.proxy.$Proxy12.getHAServiceState(Unknown Source)
      	at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getHAServiceState(ClientNamenodeProtocolTranslatorPB.java:2055)
      	at org.apache.hadoop.hdfs.HAUtil.getAddressOfActive(HAUtil.java:281)
      	at org.apache.hadoop.hdfs.tools.DFSck.getCurrentNamenodeAddress(DFSck.java:271)
      	at org.apache.hadoop.hdfs.tools.DFSck.doWork(DFSck.java:339)
      	at org.apache.hadoop.hdfs.tools.DFSck.access$000(DFSck.java:75)
      	at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:164)
      	at org.apache.hadoop.hdfs.tools.DFSck$1.run(DFSck.java:161)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/javax.security.auth.Subject.doAs(Subject.java:423)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1845)
      	at org.apache.hadoop.hdfs.tools.DFSck.run(DFSck.java:160)
      	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:409)
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            aajisaka Akira Ajisaka Assign to me
            aajisaka Akira Ajisaka
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 1h 50m
              1h 50m

              Slack

                Issue deployment