[
https://issues.apache.org/jira/browse/YARN-11918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18055359#comment-18055359
]
ASF GitHub Bot commented on YARN-11918:
---------------------------------------
aajisaka opened a new pull request, #8218:
URL: https://github.com/apache/hadoop/pull/8218
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
Fix YARN UI v2 build in Ubuntu 24.04 ARM
- Use sass instead of node-sass to support Python 3.12 to fix
`open(build_file_path, 'rU').read()` error
- Upgrade ember-cli dependencies to eliminate graceful-fs 3.0.5 to fix
`ReferenceError: primordials is not defined` error
### How was this patch tested?
Ran the following commands in M4 MBP
```
./start-build-env.sh ubuntu_24
mvn clean install -DskipTests -Pyarn-ui
```
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [x] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [x] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [x] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
### AI Tooling
If an AI tool was used:
- [x] The PR includes the phrase "Contains content generated by <tool>"
where <tool> is the name of the AI tool used.
- [x] My use of AI contributions follows the ASF legal policy
https://www.apache.org/legal/generative-tooling.html
> Fix YARN UI v2 build in Ubuntu 24.04
> ------------------------------------
>
> Key: YARN-11918
> URL: https://issues.apache.org/jira/browse/YARN-11918
> Project: Hadoop YARN
> Issue Type: Bug
> Components: yarn-ui-v2
> Environment: aarch64
> Reporter: Akira Ajisaka
> Assignee: Akira Ajisaka
> Priority: Major
>
> YARN UI v2 failed to build in Ubuntu 24.04:
> {noformat}
> [INFO] Traceback (most recent call last):
> [INFO] File
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/gyp/gyp_main.py",
> line 50, in <module>
> [INFO] sys.exit(gyp.script_main())
> [INFO] ^^^^^^^^^^^^^^^^^
> [INFO] File
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
> line 554, in script_main
> [INFO] return main(sys.argv[1:])
> [INFO] ^^^^^^^^^^^^^^^^^^
> [INFO] File
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
> line 547, in main
> [INFO] return gyp_main(args)
> [INFO] ^^^^^^^^^^^^^^
> [INFO] File
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
> line 520, in gyp_main
> [INFO] [generator, flat_list, targets, data] = Load(
> [INFO] ^^^^^
> [INFO] File
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
> line 136, in Load
> [INFO] result = gyp.input.Load(build_files, default_variables,
> includes[:],
> [INFO]
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [INFO] File
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/gyp/pylib/gyp/input.py",
> line 2782, in Load
> [INFO] LoadTargetBuildFile(build_file, data, aux_data,
> [INFO] File
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/gyp/pylib/gyp/input.py",
> line 391, in LoadTargetBuildFile
> [INFO] build_file_data = LoadOneBuildFile(build_file_path, data, aux_data,
> [INFO] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [INFO] File
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/gyp/pylib/gyp/input.py",
> line 234, in LoadOneBuildFile
> [INFO] build_file_contents = open(build_file_path, 'rU').read()
> [INFO] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [INFO] ValueError: invalid mode: 'rU' while trying to load binding.gyp
> [INFO] gyp ERR! configure error
> [INFO] gyp ERR! stack Error: `gyp` failed with exit code: 1
> [INFO] gyp ERR! stack at ChildProcess.onCpExit
> (/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/lib/configure.js:351:16)
> [INFO] gyp ERR! stack at ChildProcess.emit (events.js:314:20)
> [INFO] gyp ERR! stack at Process.ChildProcess._handle.onexit
> (internal/child_process.js:276:12)
> [INFO] gyp ERR! System Linux 6.6.116-0-virt
> [INFO] gyp ERR! command
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node/node"
>
> "/home/akajisak/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/target/webapp/node_modules/node-gyp/bin/node-gyp.js"
> "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
> "--libsass_ldflags=" "--libsass_library="
> [INFO] gyp ERR! cwd
> /home/akajisak/hadoop/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 v5.1.1
> [INFO] gyp ERR! not ok {noformat}
> node-gyp v5.1.1 is old and it doesn't support Python 3.12.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]