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


    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha2
    • Component/s: None
    • Labels:
    • Target Version/s:
    • Hadoop Flags:


      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', 'diagnosticMessage': 'some message added by admin/workflow'}


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



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


              • Created: