Yum安装Hadoop时找不到错误CENTOS

编程入门 行业动态 更新时间:2024-10-23 23:29:34
本文介绍了Yum安装Hadoop时找不到错误CENTOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我尝试根据虚拟机上的Hadoop For Dummies中列出的说明设置hadoop环境。步骤之一表示以下代码 -

yum install hadoop \ * mahout\ * oozie \ * hbase \ * pig\ * hive\ * zookeeper \ * hue \ *

当我运行时,我得到以下错误 -

[root @ localhost Desktop]#yum install hadoop \ * 加载插件:fastestmirror,refresh-packagekit,security 从缓存的hostfile加载镜像速度 * base:centos.mirror.crucial.au * extras:centos.mirror.crucial.au * updates:centos.mirror .nsw.au.glovine.au base | 3.7 kB 00:00 extras | 3.4 kB 00:00 更新| 3.4 kB 00:00 设置安装过程无软件包hadoop *可用。 错误:无法做

在所有hadoop,zookeeper和色调中,找不到包。我看着那些镜像网站,我看到hadoop不存在。

编辑 -

正如下面我指出的那样尝试使用以下命令获取repo命令 -

wget -O /etc/yum.repos.d/bigtop .repo archive.apache/dist/bigtop/bigtop-1.0.0/repos/centos6/bigtop.repo

这是抛出以下Connection Refused错误 -

[root @ localhost Desktop]#wget -O /etc/yum.repos.d/bigtop.repo www.apache/dist/bigtop/bigtop-1.0.0/repos/centos6/bigtop.repo --2015-12-30 05:03:09-- www.apache/dist/bigtop/bigtop-1.0.0/repos/centos6/bigtop.repo 解决www.apache ... 88.198.26.2 ,140.211.11.105,2a01:4f8:130:2192 :: 2 连接到www.apache | 88.198.26.2 |:80 ...失败:连接被拒绝。 连接到www.apache | 140.211.11.105 |:80 ...失败:连接被拒绝。 连接到www.apache | 2a01:4f8:130:2192 :: 2 |:80 ...失败:网络不可达。

同样,我尝试过CDH一键安装指出user1862493,

[root @ localhost Desktop]#wget archive.cloudera/cdh5/one-click-install/ redhat / 6 / x86_64 / cloudera-cdh-5-0.x86_64.rpm --2015-12-30 05:07:49-- archive.cloudera/cdh5/one-click -install / redhat / 6 / x86_64 / cloudera-cdh-5-0.x86_64.rpm 解决archive.cloudera ... 23.235.41.167 连接到archive.cloudera | 23.235。 41.167 |:443 ...失败:连接被拒绝。

yum更新工作正常,以及在VM内的互联网,任何帮助吗?

解决方案

您需要首先添加存储库。

wget archive.cloudera/cdh5/one-click-install/redhat/6/x86_64/cloudera -cdh-5-0.x86_64.rpm yum --nogpgcheck localinstall cloudera-cdh-5-0.x86_64.rpm yum清除所有

然后尝试安装hadoop组件。

Ref www.cloudera/ content / www / en-us / documentation / enterprise / latest / topics / cdh_ig_cdh5_install.html#topic_4_4_1_unique_2__p_31_unique_2

I am trying to set up the hadoop environment following the instructions listed in the book Hadoop For Dummies on a virtual machine.

One of step indicates the following code -

yum install hadoop\* mahout\* oozie\* hbase\* pig\* hive\* zookeeper\* hue\*

When I run that I get the following error -

[root@localhost Desktop]# yum install hadoop\* Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: centos.mirror.crucial.au * extras: centos.mirror.crucial.au * updates: centos.mirror.nsw.au.glovine.au base | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 Setting up Install Process No package hadoop* available. Error: Nothing to do

Among all hadoop, zookeeper and hue I got the error saying the package not found. I looked into those mirror sites and I do see that hadoop is not present. Is there any way to force the mirror to some other location?

Edit -

As pointed out below I did try the command to get the repo with the following command -

wget -O /etc/yum.repos.d/bigtop.repo archive.apache/dist/bigtop/bigtop-1.0.0/repos/centos6/bigtop.repo

which is throwing following Connection Refused error -

[root@localhost Desktop]# wget -O /etc/yum.repos.d/bigtop.repo www.apache/dist/bigtop/bigtop-1.0.0/repos/centos6/bigtop.repo --2015-12-30 05:03:09-- www.apache/dist/bigtop/bigtop-1.0.0/repos/centos6/bigtop.repo Resolving www.apache... 88.198.26.2, 140.211.11.105, 2a01:4f8:130:2192::2 Connecting to www.apache|88.198.26.2|:80... failed: Connection refused. Connecting to www.apache|140.211.11.105|:80... failed: Connection refused. Connecting to www.apache|2a01:4f8:130:2192::2|:80... failed: Network is unreachable.

Likewise I did try CDH one-click install as pointed out by user1862493 and I am getting the following error

[root@localhost Desktop]# wget archive.cloudera/cdh5/one-click-install/redhat/6/x86_64/cloudera-cdh-5-0.x86_64.rpm --2015-12-30 05:07:49-- archive.cloudera/cdh5/one-click-install/redhat/6/x86_64/cloudera-cdh-5-0.x86_64.rpm Resolving archive.cloudera... 23.235.41.167 Connecting to archive.cloudera|23.235.41.167|:443... failed: Connection refused.

yum update worked fine and so is internet within the VM, any help?

解决方案

You need to add the repository first.

wget archive.cloudera/cdh5/one-click-install/redhat/6/x86_64/cloudera-cdh-5-0.x86_64.rpm yum --nogpgcheck localinstall cloudera-cdh-5-0.x86_64.rpm yum clean all

Then try to install hadoop components.

Ref www.cloudera/content/www/en-us/documentation/enterprise/latest/topics/cdh_ig_cdh5_install.html#topic_4_4_1_unique_2__p_31_unique_2

更多推荐

Yum安装Hadoop时找不到错误CENTOS

本文发布于:2023-10-13 09:52:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1487620.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   错误   Yum   Hadoop   CENTOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!