|
1 年之前 | |
---|---|---|
.. | ||
src | 0f3406ac34 YARN-11312: [UI2] Refresh buttons don't work after EmberJS upgrade (#5649) | 2 年之前 |
README.md | 7e486038ea YARN-11439. Fix Typo of hadoop-yarn-ui README.md. (#5405) | 2 年之前 |
pom.xml | 8444f69511 Preparing for 3.5.0 development (#6411) | 1 年之前 |
The YARN UI is an Ember based web-app that provides visualization of the applications running on the Apache Hadoop YARN framework.
You can point the UI to custom locations by setting the environment variables in src/main/webapp/config/configs.env
.
In order to make the UI running on Ember server (started by yarn start
)
work with independently running ResourceManager,
you need to enable 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 of the ResourceManager.
All the following commands must be run inside src/main/webapp
.
You will need the following things properly installed on your computer.
yarn install
& bower install
yarn start
yarn run build
(production)Warning: Do not edit the package.json or bower.json files manually. This could make them out-of-sync with the respective lock or shrinkwrap files.
YARN UI has replaced NPM with Yarn package manager. And hence Yarn would be used to manage dependencies defined in package.json.
YARN-6278
added yarn-ui
profile to pom.xml leveraging
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
the 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