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

Spark on YARN won't ever ask for more executors than there were containers at time of context creation

    XMLWordPrintableJSON

Details

    Description

      Looking at YarnSchedulerBackend, it appears that totalExpectedExecutors is only ever set at startup.

      Based on my experience of running on EMR (and a quick browse through the code supports this), Spark will never ask for more executors than what this was set to.

      This means that if I add more nodes to my YARN cluster, Spark will never pick them up. This is bad. The whole point of using Spark on EMR/YARN is to be able to add or remove nodes to the cluster and have Spark "Do The Right Thing".

      Attachments

        1. doc-emr-patch.txt
          1 kB
          Hunter Kelly

        Activity

          People

            Unassigned Unassigned
            retnuH Hunter Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: