Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3692

Allow REST API to set a user generated message when killing an application

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha2
    • None
    • None
    • Reviewed

    Description

      Currently YARN's REST API supports killing an application without setting a diagnostic message. It would be good to provide that support.

      Use Case
      Usually this helps in workflow management in a multi-tenant environment when the workflow scheduler (or the hadoop admin) wants to kill a job - and let the user know the reason why the job was killed. Killing the job by setting a diagnostic message is a very good solution for that. Ideally, we can set the diagnostic message on all such interface:
      yarn kill -applicationId ... -diagnosticMessage "some message added by admin/workflow"
      REST API

      { 'state': 'KILLED', 'diagnostics': 'some message added by admin/workflow'}

      Attachments

        1. 0007-YARN-3692.1.patch
          18 kB
          Rohith Sharma K S
        2. 0007-YARN-3692.patch
          18 kB
          Rohith Sharma K S
        3. 0006-YARN-3692.patch
          17 kB
          Rohith Sharma K S
        4. 0005-YARN-3692.1.patch
          17 kB
          Rohith Sharma K S
        5. 0005-YARN-3692.patch
          17 kB
          Rohith Sharma K S
        6. 0004-YARN-3692.patch
          15 kB
          Rohith Sharma K S
        7. 0003-YARN-3692.patch
          10 kB
          Rohith Sharma K S
        8. 0002-YARN-3692.patch
          14 kB
          Rohith Sharma K S
        9. 0001-YARN-3692.patch
          10 kB
          Rohith Sharma K S

        Activity

          People

            rohithsharma Rohith Sharma K S
            rjainqb Rajat Jain
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: