You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Akira Ajisaka (Jira)" <ji...@apache.org> on 2026/01/06 07:21:00 UTC
[jira] [Comment Edited] (YARN-11712) Yarn-ui build fails in ARM docker looking for python2.
[ https://issues.apache.org/jira/browse/YARN-11712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18050018#comment-18050018 ]
Akira Ajisaka edited comment on YARN-11712 at 1/6/26 7:20 AM:
--------------------------------------------------------------
[~stevel@apache.org] I couldn't reproduce the issue. My reproduction command in M4 MacBook Pro and it succeeded.
{noformat}
git checkout branch-3.4.3
git clean -dfx
./start-build-env.sh
mvn clean install -DskipTests -DskipShade -Pnative,yarn-ui
{noformat}
Looking at your error log:
{noformat}
[INFO] gyp ERR! node -v v12.22.1
[INFO] gyp ERR! node-gyp -v v3.8.0
[INFO] gyp ERR! not ok
[INFO] Build failed with error code: 1
{noformat}
node-gyp v3.8.0 is still used. Perhaps the old version is cached in your npm environment.
was (Author: ajisakaa):
[~stevel@apache.org] I couldn't reproduce the issue. My reproduction command in M4 MacBook Pro and it succeeded.
{noformat}
git checkout branch-3.4.3
git clean -dfx
./start-build-env.sh
mvn clean install -DskipTests -DskipShade -Pnative,yarn-ui
{noformat}
Looking at your error log:
[INFO] gyp ERR! node -v v12.22.1
[INFO] gyp ERR! node-gyp -v v3.8.0
[INFO] gyp ERR! not ok
[INFO] Build failed with error code: 1
node-gyp v3.8.0 is still used. Perhaps the old version is cached in your npm environment.
> Yarn-ui build fails in ARM docker looking for python2.
> ------------------------------------------------------
>
> Key: YARN-11712
> URL: https://issues.apache.org/jira/browse/YARN-11712
> Project: Hadoop YARN
> Issue Type: Bug
> Components: yarn-ui-v2
> Affects Versions: 3.4.1
> Reporter: Mukund Thakur
> Assignee: Masatake Iwasaki
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 3.5.0, 3.4.2
>
>
> {noformat}
> INFO] Exit code: 1
> [INFO] Command: node install.js
> [INFO] Arguments:
> [INFO] Directory: /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/phantomjs-prebuilt
> [INFO] Output:
> [INFO] PhantomJS not found on PATH
> [INFO] Unexpected platform or architecture: linux/arm64
> [INFO] It seems there is no binary available for your platform/architecture
> [INFO] Try to install PhantomJS globally"
> [INFO] error /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass: Command failed.
> [INFO] error /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass: Command failed.info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> [INFO] Exit code: 1
> [INFO] Command: node scripts/build.js
> [INFO] Arguments:
> [INFO] Directory: /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass
> [INFO] Output:
> [INFO] Building: /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node/node /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
> [INFO] gyp info it worked if it ends with ok
> [INFO] gyp verb cli [
> [INFO] gyp verb cli '/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node/node',
> [INFO] gyp verb cli '/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js',
> [INFO] gyp verb cli 'rebuild',
> [INFO] gyp verb cli '--verbose',
> [INFO] gyp verb cli '--libsass_ext=',
> [INFO] gyp verb cli '--libsass_cflags=',
> [INFO] gyp verb cli '--libsass_ldflags=',
> [INFO] gyp verb cli '--libsass_library='
> [INFO] gyp verb cli ]
> [INFO] gyp info using node-gyp@3.8.0
> [INFO] gyp info using node@12.22.1 | linux | arm64
> [INFO] gyp verb command rebuild []
> [INFO] gyp verb command clean []
> [INFO] gyp verb clean removing "build" directory
> [INFO] gyp verb command configure []
> [INFO] gyp verb check python checking for Python executable "python2" in the PATH
> [INFO] gyp verb `which` failed Error: not found: python2
> [INFO] gyp verb `which` failed at getNotFoundError (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:13:12)
> [INFO] gyp verb `which` failed at F (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:68:19)
> [INFO] gyp verb `which` failed at E (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:80:29)
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:89:16
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/index.js:42:5
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/mode.js:8:5
> [INFO] gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21)
> [INFO] gyp verb `which` failed python2 Error: not found: python2
> [INFO] gyp verb `which` failed at getNotFoundError (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:13:12)
> [INFO] gyp verb `which` failed at F (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:68:19)
> [INFO] gyp verb `which` failed at E (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:80:29)
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:89:16
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/index.js:42:5
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/mode.js:8:5
> [INFO] gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21) {
> [INFO] gyp verb `which` failed code: 'ENOENT'
> [INFO] gyp verb `which` failed }
> [INFO] gyp verb check python checking for Python executable "python" in the PATH
> [INFO] gyp verb `which` failed Error: not found: python
> [INFO] gyp verb `which` failed at getNotFoundError (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:13:12)
> [INFO] gyp verb `which` failed at F (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:68:19)
> [INFO] gyp verb `which` failed at E (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:80:29)
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:89:16
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/index.js:42:5
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/mode.js:8:5
> [INFO] gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21)
> [INFO] gyp verb `which` failed python Error: not found: python
> [INFO] gyp verb `which` failed at getNotFoundError (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:13:12)
> [INFO] gyp verb `which` failed at F (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:68:19)
> [INFO] gyp verb `which` failed at E (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:80:29)
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:89:16
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/index.js:42:5
> [INFO] gyp verb `which` failed at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/mode.js:8:5
> [INFO] gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:168:21) {
> [INFO] gyp verb `which` failed code: 'ENOENT'
> [INFO] gyp verb `which` failed }
> [INFO] gyp ERR! configure error
> [INFO] gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
> [INFO] gyp ERR! stack at PythonFinder.failNoPython (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:484:19)
> [INFO] gyp ERR! stack at PythonFinder.<anonymous> (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:406:16)
> [INFO] gyp ERR! stack at F (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:68:16)
> [INFO] gyp ERR! stack at E (/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:80:29)
> [INFO] gyp ERR! stack at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/which/which.js:89:16
> [INFO] gyp ERR! stack at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/index.js:42:5
> [INFO] gyp ERR! stack at /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/isexe/mode.js:8:5
> [INFO] gyp ERR! stack at FSReqCallback.oncomplete (fs.js:168:21)
> [INFO] gyp ERR! System Linux 6.6.32-linuxkit
> [INFO] gyp ERR! command "/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node/node" "/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
> [INFO] gyp ERR! cwd /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-sass
> [INFO] gyp ERR! node -v v12.22.1
> [INFO] gyp ERR! node-gyp -v v3.8.0
> [INFO] gyp ERR! not ok
> [INFO] Build failed with error code: 1
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary for Apache Hadoop YARN UI 3.4.1:
> [INFO]
> [INFO] Apache Hadoop YARN UI .............................. FAILURE [ 29.848 s]{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org