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

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment