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

Jeff Zhang commented on TEZ-1844:
---------------------------------

bq. One aspect however needs to be checked - the staging dir is cleaned up by a 
DAGAppMaster stop. Could you please verify that this is not the directory to 
which local mode generates data.
[~sseth] Currently, local mode use the same directory for staging directory and 
AM's working directory. I think this is for avoiding resource localization. I 
can fix it in another ticket. 

[~airbots] Thanks for review, address the issue in the new patch.   

> Shouldn't invoke system.exit in local mode when AM is failed to start
> ---------------------------------------------------------------------
>
>                 Key: TEZ-1844
>                 URL: https://issues.apache.org/jira/browse/TEZ-1844
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Jeff Zhang
>            Assignee: Jeff Zhang
>         Attachments: TEZ-1844-2.patch, TEZ-1844-3.patch, TEZ-1844.patch
>
>
> In local mode, TezClient and Tez-AM run in the same JVM, we don't need to 
> call system.exit when AM is failed to start, throw exception should be more 
> proper. 
> {code}
>           dagAppMaster = createDAGAppMaster(applicationAttemptId, cId, 
> currentHost, nmPort, nmHttpPort,
>                   new SystemClock(),
>                   appSubmitTime, isSession, userDir.toUri().getPath());
>           clientHandler = new DAGClientHandler(dagAppMaster);
>           DAGAppMaster.initAndStartAppMaster(dagAppMaster, 
> currentUser.getShortUserName());
>           } catch (Throwable t) {
>           LOG.fatal("Error starting DAGAppMaster", t);
>           System.exit(1);
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to