yum在清除卸载HDP期间删除问题

时间:2015-10-09 09:03:43

标签: linux yum rhel hortonworks-data-platform

thisthis等几个链接所述,我正在尝试清理未安装的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. 如果是,则必须使用Internet来清除所有这些软件包

2 个答案:

答案 0 :(得分:1)

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

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

编辑:

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

答案 1 :(得分:0)

你去吧!这是您的问题的解决方案。我挣扎了好几个星期,尝试一遍又一遍地卸载和重新安装,最后决定在这里分享:How to completely remove and uninstall hadoop componens

诀窍是基本上删除指向HDP组件所在位置的所有符号链接,因为这是造成80%问题的原因。