gpt4 book ai didi

hadoop - yum安装Hadoop not found报错CENTOS

转载 作者:可可西里 更新时间:2023-11-01 16:48:33 37 4
gpt4 key购买 nike

我正在尝试按照 Hadoop For Dummies 一书中列出的说明在虚拟机上设置 hadoop 环境。

步骤之一表示以下代码-

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

当我运行时,出现以下错误 -

[root@localhost Desktop]# yum install hadoop\*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.crucial.com.au
* extras: centos.mirror.crucial.com.au
* updates: centos.mirror.nsw.au.glovine.com.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

在所有 hadoop、zookeeper 和 hue 中,我收到错误消息说找不到包。我查看了那些镜像站点,发现 hadoop 不存在。有没有办法强制镜像到其他位置?

编辑-

正如下面所指出的,我确实尝试使用以下命令获取 repo 协议(protocol) -

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

这是抛出以下连接被拒绝的错误 -

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

同样,我确实尝试过 user1862493 指出的 CDH 一键安装,但我收到以下错误

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

yum update 运行良好,虚拟机内的互联网也运行良好,有什么帮助吗?

最佳答案

您需要先添加存储库。

wget https://archive.cloudera.com/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

然后尝试安装hadoop组件。

引用 http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_ig_cdh5_install.html#topic_4_4_1_unique_2__p_31_unique_2

关于hadoop - yum安装Hadoop not found报错CENTOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34521986/

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