我正在尝试按照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并不存在。有没有办法强制将镜像移到其他位置?
编辑-
如下所示,我使用以下命令尝试了该命令以获取存储库-
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更新运行良好,所以互联网在虚拟机中,有什么帮助吗?
发布于 2015-12-30 11:48:14
您需要先添加存储库。
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
https://stackoverflow.com/questions/34521986
复制相似问题