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

Sreenath Somarajapuram commented on YARN-5145:
----------------------------------------------

[~leftnoteasy]

config.env, default-config.js and environment.js were initially created with 
different purposes.
# config.env - For configuring host URLs and other values respective to the 
machine the UI is hosted in. It would be a separate file, and wont be imploded 
by the build script. Hence when the UI is hosted in tomcat or some similar 
server, the user can go and configure the UI. In other words, this file is used 
to configure UI in the deployment phase.
# default-config.js - Contains default values of the above + other constants 
internal to the UI (Like REST end point namespaces). This would be imploded and 
minified by the build script. Hence this file can be changed only before the 
build, or in the development phase. 
# environment.js - This is Ember's standard file, and contain Ember related 
environment variables. They define how ember works.

In short. If we remove config.env. Someone who want to host our UI war in 
his/her tomcat or similar servers would find it hard to get the UI working.

Now accessing the configuration:
# Production - UI hosted in RM : As mentioned by [~cheersyang], the UI can load 
configurations from RM's conf endpoint.
# Production - UI hosted in a web server (tomcat) : config.env can be used to 
configure the host URLs. (HADOOP_CONF_DIR could be out of reach as the machine 
its hosted in need not be even a part of the cluster)
# Production - wrapped : Things would be different if it is viewed inside other 
web interfaces like Ambari. We would have to take the configurations from REST 
end points provided by the respective interfaces. Guess that is out of scope 
now.
# Development : config.env can be used to configure the host URLs.

> [YARN-3368] Move new YARN UI configuration to HADOOP_CONF_DIR
> -------------------------------------------------------------
>
>                 Key: YARN-5145
>                 URL: https://issues.apache.org/jira/browse/YARN-5145
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Wangda Tan
>            Assignee: Kai Sasaki
>         Attachments: YARN-5145-YARN-3368.01.patch
>
>
> Existing YARN UI configuration is under Hadoop package's directory: 
> $HADOOP_PREFIX/share/hadoop/yarn/webapps/, we should move it to 
> $HADOOP_CONF_DIR like other configurations.



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

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

Reply via email to