-
Notifications
You must be signed in to change notification settings - Fork 9.2k
YARN-10020. Fix build instruction of hadoop-yarn-ui. #1750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
f116226
80f1932
a8f12cc
d969c57
2f8b12f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,12 @@ The YARN UI is an Ember based web-app that provides visualization of the applica | |
|
|
||
| ## Configurations | ||
|
|
||
| * You can point the UI to custom locations by setting the environment variables in `src/main/webapp/config/configs.env` | ||
| You can point the UI to custom locations by setting the environment variables in `src/main/webapp/config/configs.env`. | ||
|
|
||
| In order to access RM from UI started by `yarn start`, | ||
| you need to enbale CORS by setting `hadoop.http.cross-origin.enabled` to true | ||
|
||
| and adding `org.apache.hadoop.security.HttpCrossOriginFilterInitializer` | ||
| to `hadoop.http.filter.initializers` in core-site.xml. | ||
|
|
||
| ## Development | ||
|
|
||
|
|
@@ -32,7 +37,7 @@ All the following commands must be run inside `src/main/webapp`. | |
| You will need the following things properly installed on your computer. | ||
|
|
||
| * Install [Yarn](https://yarnpkg.com) v0.21.3 | ||
| * Install [Bower](http://bower.io/) v1.7.7 | ||
| * Install [Bower](http://bower.io/) v1.8.8 | ||
| * Install all dependencies by running `yarn install` & `bower install` | ||
|
|
||
| ### Running UI | ||
|
|
@@ -62,3 +67,21 @@ YARN UI has replaced NPM with Yarn package manager. And hence Yarn would be used | |
| ### Adding new routes (pages), controllers, components etc. | ||
|
|
||
| * Use ember-cli blueprint generator - [Ember CLI](http://ember-cli.com/extending/#generators-and-blueprints) | ||
|
|
||
| ### Building with Maven | ||
|
|
||
| [YARN-6278](https://issues.apache.org/jira/browse/YARN-6278) | ||
| added build profile using frontend-maven-plugin which | ||
|
||
| automatically installs Node.js and Yarn locally under target/webapp directory. | ||
| After building yarn-ui by `mvn package -Pyarn-ui`, you can reuse | ||
| locally installed Node.js and Yarn instead of manually installing them. | ||
|
||
|
|
||
| ``` | ||
| $ mvn package -Pyarn-ui | ||
| $ export PATH=$PWD/target/webapp/node:$PATH | ||
| $ export YARNJS=$PWD/target/webapp/node/yarn/dist/bin/yarn.js | ||
| $ cd src/main/webapp/ | ||
| $ node $YARNJS install | ||
| $ node node_modules/.bin/bower install | ||
| $ node $YARNJS start | ||
| ``` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"from the UI"? I'm not sure what we are trying to say here.
I would recommend rephrasing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed by adding the development context.