[ 
https://issues.apache.org/jira/browse/YARN-8806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626868#comment-16626868
 ] 

Zac Zhou commented on YARN-8806:
--------------------------------

Thanks [~leftnoteasy] for your comments.

As deleteOnExit() would fail if the staging directory is not empty. A runtime 
shutdown hook is used.

> Enable local staging directory and clean it up when submarine job is submitted
> ------------------------------------------------------------------------------
>
>                 Key: YARN-8806
>                 URL: https://issues.apache.org/jira/browse/YARN-8806
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>         Environment: In the /tmp dir, there are launch scripts which are not 
> cleaned up as follows:
> -rw-r--r-- 1 hadoop netease 1100 Sep 18 10:46 
> PRIMARY_WORKER-launch-script8635233314077649086.sh
> -rw-r--r-- 1 hadoop netease 1100 Sep 18 10:46 
> WORKER-launch-script129488020578466938.sh
> -rw-r--r-- 1 hadoop netease 1028 Sep 18 10:46 
> PS-launch-script471092031021738136.sh
>            Reporter: Zac Zhou
>            Assignee: Zac Zhou
>            Priority: Major
>         Attachments: YARN-8806.001.patch, YARN-8806.002.patch, 
> YARN-8806.003.patch, YARN-8806.004.patch
>
>
> YarnServiceJobSubmitter.generateCommandLaunchScript creates container launch 
> scripts in the local filesystem.  Container launch scripts would be uploaded 
> to hdfs staging dir, but would not be not deleted after the job is submitted



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to