|
1 yıl önce | |
---|---|---|
.. | ||
src | 5e8663d0f5 YARN-11312: [UI2] Refresh buttons don't work after EmberJS upgrade (#5654) | 1 yıl önce |
README.md | 7868da894a YARN-10037. Upgrade build tools for YARN Web UI v2. | 5 yıl önce |
pom.xml | 9ca4ac0af0 HADOOP-18305. Preparing for 3.3.4 release: branch-3.3 version => 3.3.9 (#4482) | 2 yıl önce |
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 ResouceManager,
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