yum install hadoop not found error centos

bbmckpt7  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(503)

我正在尝试按照hadoop for dummies on a virtual machine一书中列出的说明来设置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并不存在。有没有办法把镜子推到别的地方?
编辑-
正如下面指出的那样,我确实尝试了使用以下命令获取回购协议-

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.

同样,我也尝试了cdh一键安装,正如user1862493所指出的那样,我得到了以下错误

[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.

百胜更新运行良好,虚拟机内的互联网也正常,有什么帮助吗?

vu8f3i0k

vu8f3i0k1#

您需要先添加存储库。

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

相关问题