hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui
Anu Engineer d0bd0f6233 Merge branch 'trunk' into HDFS-7240
Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/dev-support/findbugsExcludeFile.xml
	hadoop-hdfs-project/hadoop-hdfs/pom.xml
	hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs
	hadoop-project/pom.xml
	hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/api/impl/TestAMRMClient.java
2017-08-21 18:57:15 -07:00
..
public YARN-4849. Addendum patch to fix ASF warnings. (Wangda Tan via Sunil G) 2016-11-06 13:13:31 -08:00
src/main/webapp Merge branch 'trunk' into HDFS-7240 2017-08-21 18:57:15 -07:00
README.md YARN-6458. Use yarn package manager to lock down dependency versions for new web UI. Contributed by Sreenath Somarajapuram. 2017-06-08 10:44:50 -07:00
pom.xml Merge branch 'trunk' of https://git-wip-us.apache.org/repos/asf/hadoop into HDFS-7240 2017-07-07 13:16:18 -07:00

README.md

Yarn UI

The Yarn UI is an Ember based web-app that provides visualization of the applications running on the Apache Hadoop YARN framework.

Configurations

  • You can point the UI to custom locations by setting the environment variables in src/main/webapp/config/configs.env

Development

All the following commands must be run inside src/main/webapp.

Prerequisites

You will need the following things properly installed on your computer.

  • Install Yarn v0.21.3
  • Install Bower v1.7.7
  • Install all dependencies by running yarn install & bower install

Running UI

Building

  • yarn run build (production)
  • Files would be stored in "dist/"

Adding new dependencies

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.

  • Please use the Yarn and Bower command-line tools to add new dependencies. And the tool version must be same as those defined in Prerequisites section.
  • Once any dependency is added:
    • If it's in package.json. Make sure that the respective, and only those changes are reflected in yarn.lock file.
    • If it's in bower.json. Make sure that the respective, and only those changes are reflected in bower-shrinkwrap.json file.
  • Commands to add using CLI tools:
    • Yarn: yarn add [package-name]
    • Bower: bower install --save [package-name]

Adding new routes (pages), controllers, components etc.

  • Use ember-cli blueprint generator - Ember CLI