百胜安装Hadoop找不到错误CENTOS

时间:2015-12-30 02:08:00

标签: hadoop installation centos virtual-machine

我正在尝试按照虚拟机上的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命令 -

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工作得很好,虚拟机中的互联网也有帮助吗?

1 个答案:

答案 0 :(得分:1)

您需要先添加存储库。

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

相关问题