You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by iw...@apache.org on 2023/12/07 06:06:50 UTC

(hadoop) branch branch-2.10 updated (ba55cf146616 -> f9a207b2f749)

This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a change to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git


    from ba55cf146616 HADOOP-13816. Ambiguous plugin version warning from maven build. Contributed by Kai Sasaki.
     new a95118fd0ff2 Bump bower from 1.7.7 to 1.8.8 (#1683)
     new 655325be7dce YARN-10020. Fix build instruction of hadoop-yarn-ui. (#1750)
     new 6b53f52232d8 YARN-10037. Upgrade build tools for YARN Web UI v2.
     new f9a207b2f749 YARN-10331. Upgrade node.js to 10.21.0. (#2106)

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 hadoop-project/pom.xml                             |  2 +-
 .../hadoop-yarn/hadoop-yarn-ui/README.md           | 31 +++++++++++++++++++---
 .../hadoop-yarn/hadoop-yarn-ui/pom.xml             |  4 +--
 .../hadoop-yarn-ui/src/main/webapp/package.json    |  2 +-
 .../hadoop-yarn-ui/src/main/webapp/yarn.lock       | 13 ++++-----
 5 files changed, 39 insertions(+), 13 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


(hadoop) 02/04: YARN-10020. Fix build instruction of hadoop-yarn-ui. (#1750)

Posted by iw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git

commit 655325be7dce0dcc627b5b75385def3e854d5c6b
Author: Masatake Iwasaki <iw...@apache.org>
AuthorDate: Wed Dec 18 13:34:12 2019 +0900

    YARN-10020. Fix build instruction of hadoop-yarn-ui. (#1750)
    
    (cherry picked from commit 92c8962f98857c7c442160561cf53d354167d6de)
---
 .../hadoop-yarn/hadoop-yarn-ui/README.md           | 29 ++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
index f67f3517fc53..22cdb1258c44 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
@@ -21,7 +21,13 @@ The Yarn UI is an Ember based web-app that provides visualization of the applica
 
 ## Configurations
 
-* You can point the UI to custom locations by setting the environment variables in `src/main/webapp/config/configs.env`
+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.
 
 ## Development
 
@@ -32,7 +38,7 @@ All the following commands must be run inside `src/main/webapp`.
 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 [Bower](http://bower.io/) v1.8.8
 * Install all dependencies by running `yarn install` & `bower install`
 
 ### Running UI
@@ -62,3 +68,22 @@ Yarn UI has replaced NPM with Yarn package manager. And hence Yarn would be used
 ### Adding new routes (pages), controllers, components etc.
 
 * Use ember-cli blueprint generator - [Ember CLI](http://ember-cli.com/extending/#generators-and-blueprints)
+
+### Building with Maven
+
+[YARN-6278](https://issues.apache.org/jira/browse/YARN-6278)
+added `yarn-ui` profile to pom.xml leveraging
+[frontend-maven-plugin](https://github.com/eirslett/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
+```


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


(hadoop) 04/04: YARN-10331. Upgrade node.js to 10.21.0. (#2106)

Posted by iw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git

commit f9a207b2f74931bf4cdb9982309b35a19d175626
Author: Akira Ajisaka <aa...@apache.org>
AuthorDate: Tue Jun 30 16:52:57 2020 +0900

    YARN-10331. Upgrade node.js to 10.21.0. (#2106)
    
    (cherry picked from commit cd188ea9f0e807df1e2cc13f62be3e4c956b1e69)
    
     Conflicts:
            dev-support/docker/Dockerfile_aarch64
    
    (cherry picked from commit 6827d49b10376790fbeb31b1b6987b644688037d)
    
    Conflicts:
            dev-support/docker/Dockerfile
            hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn.lock
---
 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml             | 2 +-
 .../hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn.lock           | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

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 66df22f05d18..f26dfa4f7bbc 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml
@@ -147,7 +147,7 @@
                   <goal>install-node-and-yarn</goal>
                 </goals>
                 <configuration>
-                  <nodeVersion>v8.17.0</nodeVersion>
+                  <nodeVersion>v10.21.0</nodeVersion>
                   <yarnVersion>v1.21.1</yarnVersion>
                 </configuration>
               </execution>
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
index 7527ff6b6f72..fe81e32cb861 100644
--- 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
@@ -3409,9 +3409,10 @@ mute-stream@0.0.4, mute-stream@~0.0.4:
   version "0.0.4"
   resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.4.tgz#a9219960a6d5d5d046597aee51252c6655f7177e"
 
-natives@^1.1.0:
-  version "1.1.0"
-  resolved "https://registry.yarnpkg.com/natives/-/natives-1.1.0.tgz#e9ff841418a6b2ec7a495e939984f78f163e6e31"
+natives@^1.1.3:
+  version "1.1.6"
+  resolved "https://registry.yarnpkg.com/natives/-/natives-1.1.6.tgz#a603b4a498ab77173612b9ea1acdec4d980f00bb"
+  integrity sha512-6+TDFewD4yxY14ptjKaS63GVdtKiES1pTPyxn9Jb0rBqPMZ7VcCiooEhPNsr+mqHtMGxa/5c/HhcC4uPEUw/nA==
 
 negotiator@0.6.1:
   version "0.6.1"


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


(hadoop) 03/04: YARN-10037. Upgrade build tools for YARN Web UI v2.

Posted by iw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git

commit 6b53f52232d879ae0db45412f3c94c4315e5c058
Author: Masatake Iwasaki <iw...@apache.org>
AuthorDate: Thu Dec 19 19:27:31 2019 +0900

    YARN-10037. Upgrade build tools for YARN Web UI v2.
    
    (cherry picked from commit 7868da894ae148bff1d5e5159a2bc1aad44fd6aa)
    (cherry picked from commit 2eb6bf6bb104b5fda4bbd40b8c06827c63575fd0)
    
     Conflicts:
         hadoop-project/pom.xml
---
 hadoop-project/pom.xml                                   | 2 +-
 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md | 2 +-
 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml   | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
index e1da314a0319..f7c54b9dd576 100644
--- a/hadoop-project/pom.xml
+++ b/hadoop-project/pom.xml
@@ -146,7 +146,7 @@
     <surefire.fork.timeout>900</surefire.fork.timeout>
     <aws-java-sdk.version>1.11.271</aws-java-sdk.version>
     <hsqldb.version>2.3.4</hsqldb.version>
-    <frontend-maven-plugin.version>1.5</frontend-maven-plugin.version>
+    <frontend-maven-plugin.version>1.6</frontend-maven-plugin.version>
     <!-- the version of Hadoop declared in the version resources; can be overridden
     so that Hadoop 3.x can declare itself a 2.x artifact. -->
     <declared.hadoop.version>${project.version}</declared.hadoop.version>
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
index 22cdb1258c44..77071c200a02 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/README.md
@@ -37,7 +37,7 @@ All the following commands must be run inside `src/main/webapp`.
 
 You will need the following things properly installed on your computer.
 
-* Install [Yarn](https://yarnpkg.com) v0.21.3
+* Install [Yarn](https://yarnpkg.com) v1.21.1
 * Install [Bower](http://bower.io/) v1.8.8
 * Install all dependencies by running `yarn install` & `bower install`
 
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 e09b0f97df24..66df22f05d18 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml
@@ -147,8 +147,8 @@
                   <goal>install-node-and-yarn</goal>
                 </goals>
                 <configuration>
-                  <nodeVersion>v5.12.0</nodeVersion>
-                  <yarnVersion>v0.21.3</yarnVersion>
+                  <nodeVersion>v8.17.0</nodeVersion>
+                  <yarnVersion>v1.21.1</yarnVersion>
                 </configuration>
               </execution>
               <execution>


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


(hadoop) 01/04: Bump bower from 1.7.7 to 1.8.8 (#1683)

Posted by iw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git

commit a95118fd0ff2441f8fa1fdf638c7be8e4772da55
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Mon Dec 9 15:46:08 2019 +0900

    Bump bower from 1.7.7 to 1.8.8 (#1683)
    
    Bumps [bower](https://github.com/bower/bower) from 1.7.7 to 1.8.8.
    - [Release notes](https://github.com/bower/bower/releases)
    - [Changelog](https://github.com/bower/bower/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/bower/bower/compare/v1.7.7...v1.8.8)
    
    Signed-off-by: dependabot[bot] <su...@github.com>
    (cherry picked from commit e9c5bb8078833d72b3e831d511ef3ed4d16c27d3)
---
 .../hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json         | 2 +-
 .../hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn.lock            | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json
index 235233c1ab11..dd7bb842df3f 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json
@@ -19,7 +19,7 @@
   "author": "",
   "license": "Apache",
   "devDependencies": {
-    "bower": "1.7.7",
+    "bower": "1.8.8",
     "bower-shrinkwrap-resolver-ext": "0.1.0",
     "broccoli-asset-rev": "2.4.2",
     "broccoli-funnel": "1.0.1",
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
index 948feb948ef6..7527ff6b6f72 100644
--- 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
@@ -496,9 +496,9 @@ bower-shrinkwrap-resolver-ext@0.1.0:
     semver "^5.3.0"
     string.prototype.endswith "^0.2.0"
 
-bower@1.7.7, bower@^1.3.12:
-  version "1.7.7"
-  resolved "https://registry.yarnpkg.com/bower/-/bower-1.7.7.tgz#2fd7ff3ebdcba5a8ffcd84c397c8fdfe9f825f92"
+bower@1.8.8, bower@^1.3.12:
+  version "1.8.8"
+  resolved "https://registry.yarnpkg.com/bower/-/bower-1.8.8.tgz#82544be34a33aeae7efb8bdf9905247b2cffa985"
 
 brace-expansion@^1.0.0:
   version "1.1.7"


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org