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

Steve Loughran commented on YARN-1179:
--------------------------------------

The actual value needed is {{containerWorkDir}} built in {{ContainerLaunch}}; 
the selection of this directory could be pulled up and used in variable 
expansion.
                
> add ApplicationConstants option to define base dir of the installed 
> application
> -------------------------------------------------------------------------------
>
>                 Key: YARN-1179
>                 URL: https://issues.apache.org/jira/browse/YARN-1179
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: nodemanager
>    Affects Versions: 2.1.0-beta
>            Reporter: Steve Loughran
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> There is no expanded env variable for the directory into which the NM copies 
> down local resources and executes the supplied command(s). This prevents you 
> creating environment variables in the context that set absolute paths
> {code}
> env.put("CONF_DIR",absolute path to "/conf")
> {code}
> This could be determined by resolving "." to an absolute value in bash 
> scripts, but it would be easier and safer if we just had an auto-expanding 
> env variable
> {code}
> env.put("CONF_DIR","<INSTALL_DIR>/conf")
> {code}
> And of course {{INSTALL_DIR}} would be declared in {{ApplicationConstants}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to