|
vor 4 Jahren | |
---|---|---|
.. | ||
src | 98ca6afd17 YARN-10618. RM UI2 Application page shows the AM preempted containers instead of the nonAM ones. Contributed by Benjamin Teke | vor 4 Jahren |
README.md | 7868da894a YARN-10037. Upgrade build tools for YARN Web UI v2. | vor 5 Jahren |
pom.xml | ae4945fb2c YARN-10560. Upgrade node.js to 10.23.1 and yarn to 1.22.5 in Web UI v2. (#2592) | vor 4 Jahren |
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