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
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
hadoop.http.filter.initializers in core-site.xml of the ResourceManager.
All the following commands must be run inside
You will need the following things properly installed on your computer.
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-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