gpt4 book ai didi

linux - yum 删除干净卸载 HDP 期间的问题

转载 作者:太空宇宙 更新时间:2023-11-04 10:46:10 25 4
gpt4 key购买 nike

this 等几个链接中所述和 this ,我正在尝试清理卸载 Hortonworks 2.2 数据平台。

在 Linux 中天真,我面临着第一步本身的问题 - 删除已安装的 HDP 包。

[root@l1031lab ~]# yum list installed | grep HDP
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
bigtop-jsvc.x86_64 1.0.10.2.2.4.2-2.el6 @HDP-2.2
bigtop-tomcat.noarch 6.0.41-1.el6 @HDP-2.2
hadoop_2_2_4_2_2.x86_64 2.6.0.2.2.4.2-2.el6 @HDP-2.2
hadoop_2_2_4_2_2-client.x86_64 2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
hadoop_2_2_4_2_2-doc.x86_64 2.6.0.2.2.4.2-2.el6 @HDP-2.2
hadoop_2_2_4_2_2-hdfs.x86_64 2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
hadoop_2_2_4_2_2-httpfs.x86_64 2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
hadoop_2_2_4_2_2-source.x86_64 2.6.0.2.2.4.2-2.el6 @HDP-2.2
hadoop_2_2_4_2_2-yarn.x86_64 2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
2.6.0.2.2.4.2-2.el6 @HDP-2.2
hbase_2_2_4_2_2.noarch 0.98.4.2.2.4.2-2.el6 @HDP-2.2
hbase_2_2_4_2_2-doc.noarch 0.98.4.2.2.4.2-2.el6 @HDP-2.2
hbase_2_2_4_2_2-master.noarch 0.98.4.2.2.4.2-2.el6 @HDP-2.2
0.98.4.2.2.4.2-2.el6 @HDP-2.2
hbase_2_2_4_2_2-rest.noarch 0.98.4.2.2.4.2-2.el6 @HDP-2.2
hbase_2_2_4_2_2-thrift.noarch 0.98.4.2.2.4.2-2.el6 @HDP-2.2
hbase_2_2_4_2_2-thrift2.noarch 0.98.4.2.2.4.2-2.el6 @HDP-2.2
hdp-select.noarch 2.2.4.2-2.el6 @HDP-2.2
phoenix_2_2_4_2_2.noarch 4.2.0.2.2.4.2-2.el6 @HDP-2.2
0.4.0.2.2.4.2-2.el6 @HDP-2.2
0.4.0.2.2.4.2-2.el6 @HDP-2.2
zookeeper_2_2_4_2_2.noarch 3.4.6.2.2.4.2-2.el6 @HDP-2.2
3.4.6.2.2.4.2-2.el6 @HDP-2.2

我试图一次性删除所有这些包:

[root@l1031lab ~]# yum remove "HDP*"
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Remove Process
No Match for argument: HDP*
http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.4.2/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.4.2/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.
http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.
http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.0/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.
No package HDP* available.
* Maybe you meant: hdp-select, hdparm
No Packages marked for removal

我有两个问题:

  1. 这里的问题是互联网连接吗?
  2. 如果是,是否必须要有互联网才能彻底删除所有这些包

最佳答案

您的互联网连接不是问题。问题是 yum 无法找到与要删除的 HDP* 匹配的软件包名称。 Yum 包名称区分大小写。根据您想要运行以下的第一个链接:

sudo yum remove bigtop* hbase* zookeeper* hadoop* hdp-* phoenix*

编辑:

更新的命令将导致 yum 扩展包名称以删除任何以该字符串开头的包,因此 bigtop* 将导致 bigtop-jsvcbigtop-tomcat 被删除。添加包的顺序并不重要,因为 yum 足够聪明来处理依赖关系等。

关于linux - yum 删除干净卸载 HDP 期间的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33034152/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com