Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-16138

YarnAllocator tries to cancel executor requests when we have none

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • Spark Core, YARN
    • None

    Description

      Easy to reproduce:
      $ spark-shell
      > sc.parallelize(1 to 10000).count()

      After the computation finishes we have 0 pending tasks so we will need 0 executors.

      16/06/21 04:07:41 INFO yarn.YarnAllocator: Driver requested a total number of 0 executor(s).
      16/06/21 04:07:41 INFO yarn.YarnAllocator: Canceling requests for 0 executor containers
      16/06/21 04:07:41 WARN yarn.YarnAllocator: Expected to find pending requests, but found none.
      ...
      16/06/21 04:08:41 INFO yarn.YarnAllocator: Canceling requests for 0 executor containers
      16/06/21 04:08:41 WARN yarn.YarnAllocator: Expected to find pending requests, but found none.
      16/06/21 04:08:41 INFO yarn.ApplicationMaster$AMEndpoint: Driver requested to kill executor(s) 1.
      16/06/21 04:08:48 INFO yarn.YarnAllocator: Driver requested a total number of 0 executor(s).
      16/06/21 04:08:48 INFO yarn.YarnAllocator: Canceling requests for 0 executor containers
      16/06/21 04:08:48 WARN yarn.YarnAllocator: Expected to find pending requests, but found none.
      16/06/21 04:08:48 INFO yarn.ApplicationMaster$AMEndpoint: Driver requested to kill executor(s) 2.
      

      Attachments

        Activity

          People

            peter.ableda@gmail.com Peter Ableda
            peter.ableda@gmail.com Peter Ableda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: