用自制软件安装hadoop时出错 [英] Error installing hadoop with homebrew

查看:120
本文介绍了用自制软件安装hadoop时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Mac上本地设置hadoop,但在尝试brew安装hadoop时遇到以下错误:

  $ brew install hadoop 
==>正在下载http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz
==>最佳镜像http://apache.mirrors.pair.com/hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz

curl:(22)请求的URL返回错误:404
错误:下载失败:http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz

任何想法我应该做什么?

Hadoop 的 Homebrew 公式已过时,它指向 1.1.2 ,而不是 1.2.1 。在Homebrew的人修复这个bug之前,您可以按照以下步骤安装Hadoop 1.1.2:


  1. 手动下载1.1版。 2 from http://archive.apache.org/dist/hadoop/ core / hadoop-1.1.2 / hadoop-1.1.2.tar.gz 到您的计算机中的任何文件夹

  2. 然后移动文件 hadoop-它们应该位于 / Library / Caches / Homebrew 到自制软件的临时文件夹中,如果您以前没有更改它, >

  3. 最后,您可以使用Homebrew安装Hadoop,现在brew会发现该文件已经被下载,并将继续安装,如下所示:

      $ brew install hadoop 
    ==>正在下载http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar。
    已经下载:/Library/Caches/Homebrew/hadoop-1.1.2.tar.gz
    ==>警告
    在Hadoop的配置文件中:
    /usr/local/Cellar/hadoop/1.1.2/libexec/conf/hadoop-env.sh
    $ JAVA_HOME已被设置为输出:
    / usr / libexec / java_home
    ==>总结
    /usr/local/Cellar/hadoop/1.1.2:271个文件,78M,在2秒内建成



I'm trying to get hadoop setup locally on my Mac, but am getting the following error when trying to brew install hadoop:

$ brew install hadoop
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz
==> Best Mirror http://apache.mirrors.pair.com/hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz

curl: (22) The requested URL returned error: 404
Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz

Any ideas what I should do?

解决方案

It seems that Homebrew formula for Hadoop is outdated, it points to 1.1.2 instead of 1.2.1. Until the guys from Homebrew fix the bug you can do the following steps in order to install Hadoop 1.1.2:

  1. Download manually version 1.1.2 from http://archive.apache.org/dist/hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz to any folder in your computer
  2. Then move the file hadoop-1.1.2.tar.gz to homebrew's temporary folder, if you have not changed it before, it should be located in /Library/Caches/Homebrew
  3. Finally you can install Hadoop using Homebrew, now brew will find that the file has already been downloaded and will proceed with installation as follows:

    $ brew install hadoop
    ==> Downloading http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.
    Already downloaded: /Library/Caches/Homebrew/hadoop-1.1.2.tar.gz
    ==> Caveats
    In Hadoop's config file:
      /usr/local/Cellar/hadoop/1.1.2/libexec/conf/hadoop-env.sh
    $JAVA_HOME has been set to be the output of:
      /usr/libexec/java_home
    ==> Summary
      /usr/local/Cellar/hadoop/1.1.2: 271 files, 78M, built in 2 seconds
    

这篇关于用自制软件安装hadoop时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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