Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-4 Implement security for Hadoop Distributed Storage Layer
  3. HDDS-1110

OzoneManager need to login during init when security is enabled.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • HDDS BadLands

    Description

      HDDS-776/HDDS-972 changed when the om login code.

      Now the OM#init() may invoke SCM#getScmInfo() without a login, which failed with the following. This ticket is opened to fix it.

       

      
      ozoneManager_1  | java.io.IOException: DestHost:destPort scm:9863 , LocalHost:localPort om/172.19.0.4:0. Failed on local exception: java.io.IOException: org.apache.hadoop.security.AccessControlException: Client cannot authenticate via:[KERBEROS]
      
      ozoneManager_1  | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      
      ozoneManager_1  | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      
      ozoneManager_1  | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      
      ozoneManager_1  | at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      
      ozoneManager_1  | at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:831)
      
      ozoneManager_1  | at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:806)
      
      ozoneManager_1  | at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1515)
      
      ozoneManager_1  | at org.apache.hadoop.ipc.Client.call(Client.java:1457)
      
      ozoneManager_1  | at org.apache.hadoop.ipc.Client.call(Client.java:1367)
      
      ozoneManager_1  | at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:228)
      
      ozoneManager_1  | at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:116)
      
      ozoneManager_1  | at com.sun.proxy.$Proxy28.getScmInfo(Unknown Source)
      
      ozoneManager_1  | at org.apache.hadoop.hdds.scm.protocolPB.ScmBlockLocationProtocolClientSideTranslatorPB.getScmInfo(ScmBlockLocationProtocolClientSideTranslatorPB.java:154)
      
      ozoneManager_1  | at org.apache.hadoop.ozone.om.OzoneManager.lambda$getScmInfo$1(OzoneManager.java:910)
      
      ozoneManager_1  | at org.apache.hadoop.utils.RetriableTask.call(RetriableTask.java:56)
      
      ozoneManager_1  | at org.apache.hadoop.ozone.om.OzoneManager.getScmInfo(OzoneManager.java:911)
      
      ozoneManager_1  | at org.apache.hadoop.ozone.om.OzoneManager.omInit(OzoneManager.java:873)
      
      ozoneManager_1  | at org.apache.hadoop.ozone.om.OzoneManager.createOm(OzoneManager.java:842)
      
      ozoneManager_1  | at org.apache.hadoop.ozone.om.OzoneManager.main(OzoneManager.java:771)
      
      

      Attachments

        1. HDDS-1110.01.patch
          1 kB
          Xiaoyu Yao

        Activity

          People

            xyao Xiaoyu Yao
            xyao Xiaoyu Yao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: