[40/50] [abbrv] hadoop git commit: YARN-6458. Use yarn package manager to lock down dependency versions for new web UI. Contributed by Sreenath Somarajapuram.

2017-10-17 Thread vrushali
http://git-wip-us.apache.org/repos/asf/hadoop/blob/f8d6ad25/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn.lock
--
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn.lock 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn.lock
new file mode 100644
index 000..948feb9
--- /dev/null
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn.lock
@@ -0,0 +1,4983 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+abbrev@1:
+  version "1.1.0"
+  resolved 
"https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f;
+
+abbrev@~1.0.7:
+  version "1.0.9"
+  resolved 
"https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135;
+
+accepts@~1.3.3:
+  version "1.3.3"
+  resolved 
"https://registry.yarnpkg.com/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca;
+  dependencies:
+mime-types "~2.1.11"
+negotiator "0.6.1"
+
+acorn@^4.0.3:
+  version "4.0.11"
+  resolved 
"https://registry.yarnpkg.com/acorn/-/acorn-4.0.11.tgz#edcda3bd937e7556410d42ed5860f67399c794c0;
+
+after@0.8.1:
+  version "0.8.1"
+  resolved 
"https://registry.yarnpkg.com/after/-/after-0.8.1.tgz#ab5d4fb883f596816d3515f8f791c0af486dd627;
+
+align-text@^0.1.1, align-text@^0.1.3:
+  version "0.1.4"
+  resolved 
"https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117;
+  dependencies:
+kind-of "^3.0.2"
+longest "^1.0.1"
+repeat-string "^1.5.2"
+
+alter@~0.2.0:
+  version "0.2.0"
+  resolved 
"https://registry.yarnpkg.com/alter/-/alter-0.2.0.tgz#c7588808617572034aae62480af26b1d4d1cb3cd;
+  dependencies:
+stable "~0.1.3"
+
+amd-name-resolver@0.0.2:
+  version "0.0.2"
+  resolved 
"https://registry.yarnpkg.com/amd-name-resolver/-/amd-name-resolver-0.0.2.tgz#7bee4e112aabeecc2e14429c4ca750c55d8e5ecd;
+
+amdefine@>=0.0.4:
+  version "1.0.1"
+  resolved 
"https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5;
+
+ansi-regex@^0.2.0, ansi-regex@^0.2.1:
+  version "0.2.1"
+  resolved 
"https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-0.2.1.tgz#0d8e946967a3d8143f93e24e298525fc1b2235f9;
+
+ansi-regex@^1.0.0:
+  version "1.1.1"
+  resolved 
"https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-1.1.1.tgz#41c847194646375e6a1a5d10c3ca054ef9fc980d;
+
+ansi-regex@^2.0.0:
+  version "2.1.1"
+  resolved 
"https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df;
+
+ansi-styles@^1.1.0:
+  version "1.1.0"
+  resolved 
"https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de;
+
+ansi-styles@^2.0.1, ansi-styles@^2.1.0, ansi-styles@^2.2.1:
+  version "2.2.1"
+  resolved 
"https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe;
+
+ansi-styles@~1.0.0:
+  version "1.0.0"
+  resolved 
"https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178;
+
+ansi@^0.3.0, ansi@~0.3.0, ansi@~0.3.1:
+  version "0.3.1"
+  resolved 
"https://registry.yarnpkg.com/ansi/-/ansi-0.3.1.tgz#0c42d4fb17160d5a9af1e484bace1c66922c1b21;
+
+ansicolors@~0.2.1:
+  version "0.2.1"
+  resolved 
"https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.2.1.tgz#be089599097b74a5c9c4a84a0cdbcdb62bd87aef;
+
+ansicolors@~0.3.2:
+  version "0.3.2"
+  resolved 
"https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.3.2.tgz#665597de86a9ffe3aa9bfbe6cae5c6ea426b4979;
+
+ansistyles@~0.1.3:
+  version "0.1.3"
+  resolved 
"https://registry.yarnpkg.com/ansistyles/-/ansistyles-0.1.3.tgz#5de60415bda071bb37127854c864f41b23254539;
+
+anymatch@^1.3.0:
+  version "1.3.0"
+  resolved 
"https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507;
+  dependencies:
+arrify "^1.0.0"
+micromatch "^2.1.5"
+
+archy@~1.0.0:
+  version "1.0.0"
+  resolved 
"https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40;
+
+are-we-there-yet@~1.0.0:
+  version "1.0.6"
+  resolved 
"https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.0.6.tgz#a2d28c93102aa6cc96245a26cb954de06ec53f0c;
+  dependencies:
+delegates "^1.0.0"
+readable-stream "^2.0.0 || ^1.1.13"
+
+are-we-there-yet@~1.1.2:
+  version "1.1.4"
+  resolved 
"https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d;
+  dependencies:
+delegates "^1.0.0"
+readable-stream "^2.0.6"
+
+argparse@^1.0.7, argparse@~1.0.2:
+  version "1.0.9"
+  resolved 
"https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86;
+  dependencies:
+sprintf-js "~1.0.2"
+
+arr-diff@^2.0.0:
+  version "2.0.0"
+  

[40/50] [abbrv] hadoop git commit: YARN-6458. Use yarn package manager to lock down dependency versions for new web UI. Contributed by Sreenath Somarajapuram.

2017-06-05 Thread xgong
YARN-6458. Use yarn package manager to lock down dependency versions for new 
web UI. Contributed by Sreenath Somarajapuram.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/46f7e919
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/46f7e919
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/46f7e919

Branch: refs/heads/YARN-5734
Commit: 46f7e91980b2c7a0fec749b5ce833be49d86c061
Parents: 367da9b
Author: Sunil G 
Authored: Sun Jun 4 22:05:14 2017 +0530
Committer: Sunil G 
Committed: Sun Jun 4 22:05:14 2017 +0530

--
 .../hadoop-yarn/hadoop-yarn-ui/README.md|   64 +
 .../hadoop-yarn/hadoop-yarn-ui/pom.xml  |  152 +-
 .../hadoop-yarn-ui/src/main/webapp/.bowerrc |5 +-
 .../src/main/webapp/WEB-INF/wro.xml |9 +
 .../src/main/webapp/bower-shrinkwrap.json   |   66 +
 .../src/main/webapp/ember-cli-build.js  |   16 +-
 .../hadoop-yarn-ui/src/main/webapp/package.json |   10 +-
 .../hadoop-yarn-ui/src/main/webapp/yarn.lock| 4983 ++
 8 files changed, 5253 insertions(+), 52 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/46f7e919/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
--
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
new file mode 100644
index 000..f67f351
--- /dev/null
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
@@ -0,0 +1,64 @@
+
+
+# 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](https://yarnpkg.com) v0.21.3
+* Install [Bower](http://bower.io/) v1.7.7
+* Install all dependencies by running `yarn install` & `bower install`
+
+### Running UI
+
+* `yarn start`
+* Visit your app at [http://localhost:4200](http://localhost:4200).
+
+### 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](http://ember-cli.com/extending/#generators-and-blueprints)

http://git-wip-us.apache.org/repos/asf/hadoop/blob/46f7e919/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml
--
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml
index b920a32..34f7d0b 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml
@@ -26,15 +26,16 @@
   hadoop-yarn-ui
   3.0.0-alpha4-SNAPSHOT
   Apache Hadoop YARN UI
-  ${packaging.type}
+  ${packagingType}
 
   
-pom
-${basedir}/target/src/main/webapp
-
${basedir}/target/src/main/webapp/node/node
-v5.7.1
-3.6.0
-false
+pom
+
+${basedir}/target/webapp
+${basedir}/target/webapp/node/node
+node/yarn/dist/bin/yarn.js
+
+false
   
 
   
@@ -47,7 +48,9 @@
   
 src/main/webapp/jsconfig.json
 src/main/webapp/bower.json
+src/main/webapp/bower-shrinkwrap.json
 src/main/webapp/package.json
+src/main/webapp/yarn.lock
 src/main/webapp/testem.json
 src/main/webapp/public/assets/images/**/*
 src/main/webapp/public/assets/images/*
@@ -57,6 +60,7 @@
 src/main/webapp/.ember-cli