Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7054 Yarn Service Phase 2
  3. YARN-8017

Validate the application ID has been persisted to the service definition prior to use

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      The service definition is persisted to disk prior to launching the application. Once the application is launched, the service definition is updated to include the application ID. If submit fails, the application ID is never added to the previously persisted service definition.

      When this occurs, attempting to stop or destroy the application results in a NPE while trying to get the application ID from the service definition, making it impossible to clean up.

      2018-03-02 18:28:05,512 INFO org.apache.hadoop.yarn.service.utils.ServiceApiUtil: Loading service definition from hdfs://y7001.yns.hortonworks.com:8020/user/hadoopuser/.yarn/services/skumpfcents/skumpfcents.json
      2018-03-02 18:28:05,525 WARN org.apache.hadoop.yarn.webapp.GenericExceptionHandler: INTERNAL_SERVER_ERROR
      java.lang.NullPointerException
      	at org.apache.hadoop.yarn.api.records.ApplicationId.fromString(ApplicationId.java:111)
      	at org.apache.hadoop.yarn.service.client.ServiceClient.getAppId(ServiceClient.java:1106)
      	at org.apache.hadoop.yarn.service.client.ServiceClient.actionStop(ServiceClient.java:363)
      	at org.apache.hadoop.yarn.service.webapp.ApiServer$4.run(ApiServer.java:251)
      	at org.apache.hadoop.yarn.service.webapp.ApiServer$4.run(ApiServer.java:243)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:422)

      Attachments

        Issue Links

          Activity

            People

              billie Billie Rinaldi
              shanekumpf@gmail.com Shane Kumpf
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: