环境: KylinLinux Advanced Server release V10 (Tercel)
版本:ambari2.7.6.0-3 + HDP-3.3.1.0-004
1、 ambari配置到第九步时,报“nothing provides /usr/lsb_release”
原因分析:kylin操作系统未安装lsb_release包导致。
解决方式:
在kylin官网镜像源上下载对应的包,上传到服务器安装即可。
https://update.cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/base/x86_64/Packages/
当前的操作系统对应的包为kylin-lsb-5.0-1.p01.ky10.aarch64.rpm
2、报“snappy-devel-1.1.0-3.el7.i686 doesnot have a compatible architecture”
原因分析:当前kylin操作系统为arm架构,当前snappy包为x86架构,包冲突。
解决办法:
更新离线源。
- 删除/etc/yum.repo.d/ambari-hdp-1.repo
- 寻找对应操作系统的hdp-utils安装包,解压到/var/www/html/ambari/目录下,然后修改/etc/yum.repo.d/hdp.repo中的hdp-utils的baseurl项;
- 分发到每一个datanode节点,分别更新yum源。
- 分别重启ambari-agent。
Sudo ambari-agentrestart all