TT Bigdata TT Bigdata
首页
  • 部署专题

    • 常规安装
    • 一键部署
  • 组件安装

    • 常规&高可用
  • 版本专题

    • 更新说明
  • Ambari-Env

    • 环境准备
    • 开始使用
  • 组件编译

    • 专区—Ambari
    • 专区—Bigtop
  • 报错解决

    • 专区—Ambari
    • 专区—Bigtop
  • 其他技巧

    • Maven镜像加速
    • Gradle镜像加速
    • Bower镜像加速
    • 虚拟环境思路
    • R环境安装+一键安装脚本
    • Ivy配置私有镜像仓库
    • Node.js 多版本共存方案
    • Ambari Web本地启动
    • Npm镜像加速
    • PostgreSQL快速安装
    • Temurin JDK 23快速安装
  • 成神之路

    • 专区—Ambari
    • 专区—Bigtop
  • 集成案例

    • Redis集成教学
    • Dolphin集成教学
    • Doris集成教学
    • 持续整理...
  • 模板代码

    • 各类组件
    • 通用模板
  • 国产化&其他系统

    • Centos系列
    • Kylin系列
    • OpenEuler系列
    • Rocky系列
    • Ubuntu系列
  • 生产调优

    • 组件调优指南
    • 1v1指导调优
  • 定制开发

    • 组件版本定制
    • 样式风格定制
  • 蓝图愿景
  • 技术支持
  • 合作共建
GitHub (opens new window)

JaneTTR

数据酿造智慧,每一滴都是沉淀!
首页
  • 部署专题

    • 常规安装
    • 一键部署
  • 组件安装

    • 常规&高可用
  • 版本专题

    • 更新说明
  • Ambari-Env

    • 环境准备
    • 开始使用
  • 组件编译

    • 专区—Ambari
    • 专区—Bigtop
  • 报错解决

    • 专区—Ambari
    • 专区—Bigtop
  • 其他技巧

    • Maven镜像加速
    • Gradle镜像加速
    • Bower镜像加速
    • 虚拟环境思路
    • R环境安装+一键安装脚本
    • Ivy配置私有镜像仓库
    • Node.js 多版本共存方案
    • Ambari Web本地启动
    • Npm镜像加速
    • PostgreSQL快速安装
    • Temurin JDK 23快速安装
  • 成神之路

    • 专区—Ambari
    • 专区—Bigtop
  • 集成案例

    • Redis集成教学
    • Dolphin集成教学
    • Doris集成教学
    • 持续整理...
  • 模板代码

    • 各类组件
    • 通用模板
  • 国产化&其他系统

    • Centos系列
    • Kylin系列
    • OpenEuler系列
    • Rocky系列
    • Ubuntu系列
  • 生产调优

    • 组件调优指南
    • 1v1指导调优
  • 定制开发

    • 组件版本定制
    • 样式风格定制
  • 蓝图愿景
  • 技术支持
  • 合作共建
GitHub (opens new window)
  • Hadoop

    • /usr/bin/env: python3: No such file or directory 问题
    • error triple-beam@1.4.1: The engine "node" is incompatible with this module 错误
      • 编译日志
        • 编译失败后日志分析:
        • 进一步排查:
      • 我们推荐使用ambari-env
    • CMake 3.1 or higher is required. You are running version 2.8.12.2 错误
    • fuse is needed by hadoop_3_2_0-3.3.4-1.el7.x86_64 错误
    • Cyrus SASL/GSASL 缺失解决
  • Spark

  • Trino

  • Hudi

  • Paimon

  • Livy

  • Flink

  • Atlas

  • Superset

  • Jsvc

  • Zookeeper

  • Hive

  • 报错解决-Bigtop
  • Hadoop
JaneTTR
2025-04-06
目录

error triple-beam@1.4.1: The engine "node" is incompatible with this module 错误

# 解决 error triple-beam@1.4.1: The engine "node" is incompatible with this module 错误

在编译 hadoop-yarn-applications-catalog-webapp 项目时,遇到了如下错误:

error triple-beam@1.4.1: The engine "node" is incompatible with this module. Expected version ">= 14.0.0". Got "12.22.1"
1

# 分析问题:

该错误是因为当前 hadoop-project 的 pom.xml 文件中,指定的Node.js版本为12.22.1,而 triple-beam@1.4.1 模块需要至少14.0.0版本的Node.js。这意味着,Node.js版本过低,无法满足该模块的要求,因此导致构建失败。

# 解决办法:

为了解决这个问题,我们需要在 hadoop-yarn-applications-catalog-webapp 项目的 pom.xml 文件中更新Node.js版本。具体做法是将Node.js版本从12.22.1升级至16.9.1或更高版本。

  1. 打开 hadoop-yarn-applications-catalog-webapp 项目中的 pom.xml 文件。

  2. 找到 node.version 配置项,并将其修改为 v16.9.1。

    修改前:

    <node.version>12.22.1</node.version>
    
    1

    修改后:

    <node.version>v16.9.1</node.version>
    
    1
  3. 保存并关闭文件。

# 注意:

注意

全局替换Node版本后,可能会导致 yarn-ui 的Node版本过高。因此,在升级Node.js版本时,务必确保整个项目的兼容性,特别是Yarn的UI部分,可能需要对其做进一步的版本调整。

# 编译日志

以下是执行 mvn 命令时的相关日志信息,说明了该错误的发生:

--- frontend-maven-plugin:1.11.2:yarn (yarn install) @ hadoop-yarn-applications-
catalog-webapp ---
[INFO] testFailureIgnore property is ignored in non test phases
[INFO] Running 'yarn ' in /opt/modules/bigtop/build/hadoop/rpm/BUILD/hadoop-3.3.4-src/h
adoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalo
g/hadoop-yarn-applications-catalog-webapp/target
[INFO] yarn install v1.22.5
[INFO] info No lockfile found.
[INFO] [1/4] Resolving packages...
[INFO] warning angular-route@1.6.10: For the actively supported Angular, see https://ww
w.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended
 AngularJS support options, see https://goo.gle/angularjs-path-forward.
[INFO] warning angular@1.6.10: For the actively supported Angular, see https://www.npmj
s.com/package/@angular/core. AngularJS support has officially ended. For extended Angul
arJS support options, see https://goo.gle/angularjs-path-forward.
[INFO] warning apidoc > apidoc-core > glob@7.2.3: Glob versions prior to v9 are no long
er supported
[INFO] warning apidoc > apidoc-core > glob > inflight@1.0.6: This module is not support
ed, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested
way to coalesce async requests by a key value, which is much more comprehensive and pow
erful.
[INFO] [2/4] Fetching packages...
[INFO] error triple-beam@1.4.1: The engine "node" is incompatible with this module. Exp
ected version ">= 14.0.0". Got "12.22.1"
[INFO] error Found incompatible module.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this
command.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Hadoop Main 3.3.4:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [ 23.420 s]
[INFO] Apache Hadoop Build Tools .......................... SUCCESS [  2.456 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [  5.064 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [  3.874 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [  1.019 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [  4.277 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 14.116 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [  5.874 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [ 30.457 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [  7.963 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [01:56 min]
[INFO] Apache Hadoop NFS .................................. SUCCESS [ 22.671 s]
[INFO] Apache Hadoop KMS .................................. SUCCESS [ 29.873 s]
[INFO] Apache Hadoop Registry ............................. SUCCESS [ 28.487 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [  0.855 s]
[INFO] Apache Hadoop HDFS Client .......................... SUCCESS [01:34 min]
[INFO] Apache Hadoop HDFS ................................. SUCCESS [01:41 min]
[INFO] Apache Hadoop HDFS Native Client ................... SUCCESS [01:47 min]
[INFO] Apache Hadoop HttpFS ............................... SUCCESS [ 38.927 s]
[INFO] Apache Hadoop HDFS-NFS ............................. SUCCESS [ 29.910 s]
[INFO] Apache Hadoop HDFS-RBF ............................. SUCCESS [ 49.301 s]
[INFO] Apache Hadoop HDFS Project ......................... SUCCESS [  0.827 s]
[INFO] Apache Hadoop YARN ................................. SUCCESS [  0.833 s]
[INFO] Apache Hadoop YARN API ............................. SUCCESS [ 32.481 s]
[INFO] Apache Hadoop YARN Common .......................... SUCCESS [ 48.916 s]
[INFO] Apache Hadoop YARN Server .......................... SUCCESS [  0.966 s]
[INFO] Apache Hadoop YARN Server Common ................... SUCCESS [ 31.738 s]
[INFO] Apache Hadoop YARN NodeManager ..................... SUCCESS [01:12 min]
[INFO] Apache Hadoop YARN Web Proxy ....................... SUCCESS [ 27.117 s]
[INFO] Apache Hadoop YARN ApplicationHistoryService ....... SUCCESS [ 29.651 s]
[INFO] Apache Hadoop YARN Timeline Service ................ SUCCESS [ 25.216 s]
[INFO] Apache Hadoop YARN ResourceManager ................. SUCCESS [ 45.947 s]
[INFO] Apache Hadoop YARN Server Tests .................... SUCCESS [ 19.194 s]
[INFO] Apache Hadoop YARN Client .......................... SUCCESS [ 26.577 s]
[INFO] Apache Hadoop YARN SharedCacheManager .............. SUCCESS [ 24.342 s]
[INFO] Apache Hadoop YARN Timeline Plugin Storage ......... SUCCESS [ 26.842 s]
[INFO] Apache Hadoop YARN TimelineService HBase Backend ... SUCCESS [  0.873 s]
[INFO] Apache Hadoop YARN TimelineService HBase Common .... SUCCESS [ 37.682 s]
[INFO] Apache Hadoop YARN TimelineService HBase Client .... SUCCESS [01:02 min]
[INFO] Apache Hadoop YARN TimelineService HBase Servers ... SUCCESS [  0.852 s]
[INFO] Apache Hadoop YARN TimelineService HBase Server 1.2  SUCCESS [ 49.208 s]
[INFO] Apache Hadoop YARN TimelineService HBase tests ..... SUCCESS [ 36.575 s]
[INFO] Apache Hadoop YARN Router .......................... SUCCESS [ 26.407 s]
[INFO] Apache Hadoop YARN TimelineService DocumentStore ... SUCCESS [ 44.934 s]
[INFO] Apache Hadoop YARN Applications .................... SUCCESS [  0.853 s]
[INFO] Apache Hadoop YARN DistributedShell ................ SUCCESS [ 28.770 s]
[INFO] Apache Hadoop YARN Unmanaged Am Launcher ........... SUCCESS [ 25.505 s]
[INFO] Apache Hadoop MapReduce Client ..................... SUCCESS [ 12.675 s]
[INFO] Apache Hadoop MapReduce Core ....................... SUCCESS [ 27.113 s]
[INFO] Apache Hadoop MapReduce Common ..................... SUCCESS [ 26.475 s]
[INFO] Apache Hadoop MapReduce Shuffle .................... SUCCESS [ 33.048 s]
[INFO] Apache Hadoop MapReduce App ........................ SUCCESS [ 40.467 s]
[INFO] Apache Hadoop MapReduce HistoryServer .............. SUCCESS [ 35.276 s]
[INFO] Apache Hadoop MapReduce JobClient .................. SUCCESS [ 35.270 s]
[INFO] Apache Hadoop Mini-Cluster ......................... SUCCESS [ 21.558 s]
[INFO] Apache Hadoop YARN Services ........................ SUCCESS [  0.828 s]
[INFO] Apache Hadoop YARN Services Core ................... SUCCESS [ 31.601 s]
[INFO] Apache Hadoop YARN Services API .................... SUCCESS [ 33.305 s]
[INFO] Apache Hadoop YARN Application Catalog ............. SUCCESS [  0.864 s]
[INFO] Apache Hadoop YARN Application Catalog Webapp ...... FAILURE [02:12 min]
[INFO] Apache Hadoop YARN Application Catalog Docker Image  SKIPPED
[INFO] Apache Hadoop YARN Application MaWo ................ SKIPPED
[INFO] Apache Hadoop YARN Application MaWo Core ........... SKIPPED
[INFO] Apache Hadoop YARN Site ............................ SKIPPED
[INFO] Apache Hadoop YARN Registry ........................ SKIPPED
[INFO] Apache Hadoop YARN UI .............................. SKIPPED
[INFO] Apache Hadoop YARN CSI ............................. SKIPPED
[INFO] Apache Hadoop YARN Project ......................... SKIPPED
[INFO] Apache Hadoop MapReduce HistoryServer Plugins ...... SKIPPED
[INFO] Apache Hadoop MapReduce NativeTask ................. SKIPPED
[INFO] Apache Hadoop MapReduce Uploader ................... SKIPPED
[INFO] Apache Hadoop MapReduce Examples ................... SKIPPED
[INFO] Apache Hadoop MapReduce ............................ SKIPPED
[INFO] Apache Hadoop MapReduce Streaming .................. SKIPPED
[INFO] Apache Hadoop Distributed Copy ..................... SKIPPED
[INFO] Apache Hadoop Client Aggregator .................... SKIPPED
[INFO] Apache Hadoop Dynamometer Workload Simulator ....... SKIPPED
[INFO] Apache Hadoop Dynamometer Cluster Simulator ........ SKIPPED
[INFO] Apache Hadoop Dynamometer Block Listing Generator .. SKIPPED
[INFO] Apache Hadoop Dynamometer Dist ..................... SKIPPED
[INFO] Apache Hadoop Dynamometer .......................... SKIPPED
[INFO] Apache Hadoop Archives ............................. SKIPPED
[INFO] Apache Hadoop Archive Logs ......................... SKIPPED
[INFO] Apache Hadoop Rumen ................................ SKIPPED
[INFO] Apache Hadoop Gridmix .............................. SKIPPED
[INFO] Apache Hadoop Data Join ............................ SKIPPED
[INFO] Apache Hadoop Extras ............................... SKIPPED
[INFO] Apache Hadoop Pipes ................................ SKIPPED
[INFO] Apache Hadoop OpenStack support .................... SKIPPED
[INFO] Apache Hadoop Amazon Web Services support .......... SKIPPED
[INFO] Apache Hadoop Kafka Library support ................ SKIPPED
[INFO] Apache Hadoop Azure support ........................ SKIPPED
[INFO] Apache Hadoop Aliyun OSS support ................... SKIPPED
[INFO] Apache Hadoop Scheduler Load Simulator ............. SKIPPED
[INFO] Apache Hadoop Resource Estimator Service ........... SKIPPED
[INFO] Apache Hadoop Azure Data Lake support .............. SKIPPED
[INFO] Apache Hadoop Image Generation Tool ................ SKIPPED
[INFO] Apache Hadoop Tools Dist ........................... SKIPPED
[INFO] Apache Hadoop Tools ................................ SKIPPED
[INFO] Apache Hadoop Client API ........................... SKIPPED
[INFO] Apache Hadoop Client Runtime ....................... SKIPPED
[INFO] Apache Hadoop Client Packaging Invariants .......... SKIPPED
[INFO] Apache Hadoop Client Test Minicluster .............. SKIPPED
[INFO] Apache Hadoop Client Packaging Invariants for Test . SKIPPED
[INFO] Apache Hadoop Client Packaging Integration Tests ... SKIPPED
[INFO] Apache Hadoop Distribution ......................... SKIPPED
[INFO] Apache Hadoop Client Modules ....................... SKIPPED
[INFO] Apache Hadoop Cloud Storage ........................ SKIPPED
[INFO] Apache Hadoop Tencent COS Support .................. SKIPPED
[INFO] Apache Hadoop Cloud Storage Project ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  31:32 min
[INFO] Finished at: 2024-07-17T09:04:29Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.2:yarn (y
arn install) on project hadoop-yarn-applications-catalog-webapp: Failed to run task: 'y
arn ' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1
 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the f
ollowing articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :hadoop-yarn-applications-catalog-webapp
error: Bad exit status from /var/tmp/rpm-tmp.Y6Ba1e (%build)

    Bad exit status from /var/tmp/rpm-tmp.Y6Ba1e (%build)

RPM build errors:

> Task :hadoop-rpm FAILED

FAILURE: Build failed with an exception.

* Where:
Script '/opt/modules/bigtop/packages.gradle' line: 529

* What went wrong:
Execution failed for task ':hadoop-rpm'.
> Process 'command 'rpmbuild'' finished with non-zero exit value 1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177

# 编译失败后日志分析:

根据日志,可以看到在执行 yarn install 命令时,遇到的错误是由于 triple-beam@1.4.1 模块与当前的Node.js版本不兼容,导致了构建过程中的失败。这个问题通常是因为Node版本低于该模块所要求的最低版本。升级Node.js版本后,应该能够顺利解决该问题。

# 进一步排查:

  • 如果修改版本后仍然出现错误,可以尝试清理缓存并重新安装依赖:

    yarn cache clean
    yarn install
    
    1
    2
  • 确保您使用的是合适的Node.js版本,可以通过以下命令确认:

    node --version
    
    1

# 我们推荐使用ambari-env (opens new window)

笔记

为了解决像Node.js版本不兼容这样的编译问题,推荐使用ambari-env (opens new window)工具集。这个工具集专门解决了在Ambari和Bigtop编译过程中遇到的一系列常见问题,自动为开发者配置合适的环境,避免手动配置中的错误或遗漏。通过ambari-env,您可以更加高效地完成环境配置,避免了频繁遇到的兼容性问题。

使用ambari-env,您可以避免在编译过程中手动调整版本依赖,自动管理环境配置,确保每次构建都顺利进行。

#Node.js#版本兼容#Maven
/usr/bin/env: python3: No such file or directory 问题
CMake 3.1 or higher is required. You are running version 2.8.12.2 错误

← /usr/bin/env: python3: No such file or directory 问题 CMake 3.1 or higher is required. You are running version 2.8.12.2 错误→

最近更新
01
Pandoc 缺失导致 SparkR 构建失败
06-08
02
Cyrus SASL/GSASL 缺失解决
06-07
03
Hadoop_3.3.4 编译实战 1.0.0+
06-06
更多文章>
Theme by Vdoing | Copyright © 2017-2025 JaneTTR | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式