Rate This Document
Findability
Accuracy
Completeness
Readability

Clearing Existing Yarn Tasks When Submitting a New Yarn Task

Symptom

When a Yarn task is submitted during a Hadoop-based test, there are still running Yarn tasks on the Yarn web page.

Key Process and Cause Analysis

The ongoing Yarn tasks do not exit.

Conclusion and Solution

  1. Stop the test and check the Yarn tasks.
    1
    2
    yarn app -list
    yarn app -kill applicationID
    

    applicationID indicates the ID of an existing Yarn task.

  2. Start the test again.