Uploaded image for project: 'Apache Submarine'
  1. Apache Submarine
  2. SUBMARINE-26

[Submarine] Can't get submarine service status using the command of "yarn app -status" under security environment

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • None
    • None

    Description

      After submitting a submarine job, we tried to get service status using the following command:

      yarn app -status ${service_name}

      But we got the following error:

      HTTP error code : 500

       

      The stack in resourcemanager log is :

      ERROR org.apache.hadoop.yarn.service.webapp.ApiServer: Get service failed: {}
      java.lang.reflect.UndeclaredThrowableException
       at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1748)
       at org.apache.hadoop.yarn.service.webapp.ApiServer.getServiceFromClient(ApiServer.java:800)
       at org.apache.hadoop.yarn.service.webapp.ApiServer.getService(ApiServer.java:186)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       ...
      Caused by: org.apache.hadoop.yarn.exceptions.YarnException: No principal specified in the persisted service definitio
      n, fail to connect to AM.
       at org.apache.hadoop.yarn.service.client.ServiceClient.createAMProxy(ServiceClient.java:1500)
       at org.apache.hadoop.yarn.service.client.ServiceClient.getStatus(ServiceClient.java:1376)
       at org.apache.hadoop.yarn.service.webapp.ApiServer.lambda$getServiceFromClient$4(ApiServer.java:804)
       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:1730)
       ... 68 more
      

      Attachments

        1. YARN-8960.007.patch
          22 kB
          Zac Zhou
        2. YARN-8960.006.patch
          22 kB
          Zac Zhou
        3. YARN-8960.005.patch
          22 kB
          Zac Zhou
        4. YARN-8960.004.patch
          17 kB
          Zac Zhou
        5. YARN-8960.003.patch
          9 kB
          Zac Zhou
        6. YARN-8960.002.patch
          7 kB
          Zac Zhou
        7. YARN-8960.001.patch
          7 kB
          Zac Zhou

        Activity

          People

            yuan_zac Zac Zhou
            yuan_zac Zac Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: