Yum安装Hadoop时找不到错误CENTOS [英] Yum install Hadoop not found error CENTOS

查看:426
本文介绍了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.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
更新| 3.4 kB 00:00
设置安装过程
无软件包hadoop *可用。
错误:无法做

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



编辑 -



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

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

这是抛出以下Connection Refused错误 -

  [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
解决www.apache.org ... 88.198.26.2 ,140.211.11.105,2a01:4f8:130:2192 :: 2
连接到www.apache.org | 88.198.26.2 |:80 ...失败:连接被拒绝。
连接到www.apache.org | 140.211.11.105 |:80 ...失败:连接被拒绝。
连接到www.apache.org | 2a01:4f8:130:2192 :: 2 |:80 ...失败:网络不可达。

同样,我尝试过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
解决archive.cloudera.com ... 23.235.41.167
连接到archive.cloudera.com | 23.235。 41.167 |:443 ...失败:连接被拒绝。

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

解决方案

您需要首先添加存储库。

  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清除所有

然后尝试安装hadoop组件。



Ref 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


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

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 http://archive.apache.org/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 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.

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

[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 worked fine and so is internet within the VM, any help?

解决方案

You need to add the repository first.

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

Then try to install hadoop components.

Ref 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

这篇关于Yum安装Hadoop时找不到错误CENTOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆