TDH集群添加节点时php版本问题

  安装
内容纲要

概要描述


-PHP相关的软件包是ganglia组件所需要的,是在添加节点的过程中安装到每一个节点上的。该问题跟操作系统版本有关,如果严格按照TDH安装手册上的版本要求是不会出现该问题的

报错信息与解决方案


报错信息:

Error: Package: php-bcmath-5.4.16-42.el7.x86_64 (transwarp)
Requires: php-common(x86-64) = 5.4.16-42.el7
Available: php-common-5.4.16-42.el7.x86_64 (transwarp)
php-common(x86-64) = 5.4.16-42.el7
Installing: php-common-5.4.16-46.el7.x86_64 (os)
php-common(x86-64) = 5.4.16-46.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Thu Feb 14 01:08:53 CST 2019 [SSH] exit status: 1
Thu Feb 14 01:08:53 CST 2019 [Manager] The command is necessary but failed!
Thu Feb 14 01:08:53 CST 2019 [Manager] Node installation failed!
Command exit with exit code 1;

根据报错可知,出错的包是: Error: Package: php-bcmath-5.4.16-42

根据后面的报错信息,需要的是 php-bcmath-5.4.16-46 版本

解决办法:

下载正确的php-bcmath-5.4.16-46 版本的rpm包

cd /var/lib/transwarp-manager/master/pub/transwarp/native/transwarp/hadoop_related/common/ganglia/
mv php-bcmath-5.4.16-42.el7.x86_64.rpm php-bcmath-5.4.16-42.el7.x86_64.rpm-bak
把包php-bcmath-5.4.16-46.el7.x86_64.rpm放在当前目录下
修改权限
chmod 755 php-bcmath-5.4.16-46.el7.x86_64.rpm
在manager节点执行yum clean all && createrepo /var/lib/transwarp-manager/master/pub/transwarp
(如果开了HA所有Manager节点都要执行上面的步骤)
在出错节点执行 yum clean all && yum install ganglia-web

页面上重试失败的操作



报错信息:

Error: Package: php-bcmath-5.4.16-42.el7.x86_64 (transwarp)
Requires: php-common(x86-64) = 5.4.16-42.el7
Available: php-common-5.4.16-42.el7.x86_64 (transwarp)
php-common(x86-64) = 5.4.16-42.el7
Installing: php-common-5.4.16-45.el7.x86_64 (os)
php-common(x86-64) = 5.4.16-45.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Thu Feb 14 01:08:53 CST 2019 [SSH] exit status: 1
Thu Feb 14 01:08:53 CST 2019 [Manager] The command is necessary but failed!
Thu Feb 14 01:08:53 CST 2019 [Manager] Node installation failed!
Command exit with exit code 1;

出错的包是: Error: Package: php-bcmath-5.4.16-42

根据后面的报错信息,需要的是 php-bcmath-5.4.16-45版本

解决办法:

下载正确的php-bcmath-5.4.16-45 版本的rpm包

cd /var/lib/transwarp-manager/master/pub/transwarp/native/transwarp/hadoop_related/common/ganglia/
mv php-bcmath-5.4.16-42.el7.x86_64.rpm php-bcmath-5.4.16-42.el7.x86_64.rpm-bak
把包php-bcmath-5.4.16-45.el7.x86_64.rpm放在当前目录下
修改权限
chmod 755 php-bcmath-5.4.16-45.el7.x86_64.rpm
在manager节点执行yum clean all && createrepo /var/lib/transwarp-manager/master/pub/transwarp
(如果开了HA所有Manager节点都要执行上面的步骤)
在出错节点执行 yum clean all && yum install ganglia-web
页面上重试失败的操作

rpm包下载地址

链接:https://pan.baidu.com/s/1NkFCnlwiLX5cO89a3JCAKA
提取码:mped

这篇文章对您有帮助吗?

平均评分 0 / 5. 次数: 0

尚无评价,您可以第一个评哦!

非常抱歉,这篇文章对您没有帮助.

烦请您告诉我们您的建议与意见,以便我们改进,谢谢您。