Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Dec 26, 2014

When we enables external shuffle service, local directories in the driver of client-mode continue remaining even if application has finished.
I think local directories for drivers should be deleted.

… local directories of the driver of local-mode when external shuffle service is enabled
@SparkQA
Copy link

SparkQA commented Dec 26, 2014

Test build #24834 has finished for PR 3811 at commit d99718e.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Dec 26, 2014

Does this define a new system property just for deployment mode? This logic looks like it is applied even when external shuffle service is not enabled. Why is the driver behavior special here?

@sarutak
Copy link
Member Author

sarutak commented Dec 26, 2014

If we run client-mode including local-mode, driver runs on client and executors doesn't run on client so no one shared the local directories of the driver.

@SparkQA
Copy link

SparkQA commented Jan 8, 2015

Test build #25233 has finished for PR 3811 at commit 88feecd.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor

Why does it matter whether it's client mode or cluster mode? I'd say it should always clean it if it's the driver (which doesn't get killed throughout the application).

@sarutak
Copy link
Member Author

sarutak commented Jan 8, 2015

@andrewor14 Ah, exactly. The driver is not killed until the end of the application. I'll fix my previous changes.

@andrewor14
Copy link
Contributor

LGTM merging into master when tests pass

@SparkQA
Copy link

SparkQA commented Jan 8, 2015

Test build #25253 has finished for PR 3811 at commit ad944ab.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Jan 8, 2015

Test build #25257 has finished for PR 3811 at commit ad944ab.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request Jan 8, 2015
…nues remaining even if application finished when external shuffle is enabled

When we enables external shuffle service, local directories in the driver of client-mode continue remaining even if application has finished.
I think local directories for drivers should be deleted.

Author: Kousuke Saruta <[email protected]>

Closes #3811 from sarutak/SPARK-4973 and squashes the following commits:

ad944ab [Kousuke Saruta] Fixed DiskBlockManager to cleanup local directory if it's the driver
43770da [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-4973
88feecd [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-4973
d99718e [Kousuke Saruta] Fixed SparkSubmit.scala and DiskBlockManager.scala in order to delete local directories of the driver of local-mode when external shuffle service is enabled

(cherry picked from commit a00af6b)
Signed-off-by: Andrew Or <[email protected]>
@asfgit asfgit closed this in a00af6b Jan 8, 2015
@sarutak sarutak deleted the SPARK-4973 branch April 11, 2015 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants