我要评分
获取效率
正确性
完整性
易理解

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.