开发者
资源
hadoop-3.3.2编译错误记录
hadoop-3.3.2编译错误记录
发表于2023/08/01
5913

【问题一】hadoop-hdfs-native-client 编译失败

hadoop-hdfs-client-native%E7%BC%96%E8%AF%91%E5%A4%B1%E8%B4%A5.PNG

排查

从报错处往前查看,看到warn日志输出

Cound not find a SASL library (GSASL (gsasl) or Cyrus SASL (libsasl2).

hadoop-hdfs-client-native%E6%8A%A5%E9%94%99%E6%8E%92%E6%9F%A5.PNG

解决方法

yum -y install cyrus-sasl*

完成后再重新编译

mvn package -DskipTests -Pdist,native -Dtar -Dmaven.javadoc.skip=true

【问题二】hadoop-yarn-applications-catalog-webapp编译失败

hadoop-yarn-applications-catalog-webapp%E7%BC%96%E8%AF%91%E5%A4%B1%E8%B4%A5.PNG

排查

从报错处往前查看,看到warn日志输出

The engine "node" is incompatible with this module. Expected version “>= 14.0.0". Got "12.22.1"

hadoop-yarn-applications-catalog-webapp%E6%8A%A5%E9%94%99%E6%8E%92%E6%9F%A5.PNG

解决方法

npm install -g yarn

yarn config set ignore-engines true       #忽略错误后重新yarn install

【问题三】hadoop-pipes编译失败

hadoop-pipes%E7%BC%96%E8%AF%91%E5%A4%B1%E8%B4%A5.PNG

排查

从报错处往前查看,看到warn日志输出

Package 'libtirpc', required by "virtual:world', not found

hadoop-pipes%E6%8A%A5%E9%94%99%E6%8E%92%E6%9F%A5.PNG

解决方法

yum install -y libtirpc libtirpc-devel
收藏举报
Level 1
0
帖子
0
粉丝
0
获赞