似乎brew DOES有一个hbase的配方,但在下载hbase本身时失败了404。
13:44:51/java:11 $brew install hbase
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hbase/hbase-0.94.11/hbase-0.94.11.tar.gz
==> Best Mirror http://apache.mirrors.tds.net/hbase/hbase-0.94.11/hbase-0.94.11.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=hbase/hbase-0.94.11/hbase-0.94.11.tar.gz
更正后的网址为:http://mirror.reverse.net/pub/apache/hbase/hbase-0.94.11/hbase-0.94.11.tar.gz
我在创建/修改brew配方方面没有经验。这是一个简单的情况下下载/调整brew配方文件的正确hbase下载URL,然后重新尝试?会有什么步骤?
更新 基于以下评论我做了
$brew update && brew upgrade
这对我来说失败了:
error: Your local changes to the following files would be overwritten by merge:
Library/Contributions/brew_bash_completion.sh
Library/Contributions/brew_fish_completion.fish
Library/Contributions/brew_zsh_completion.zsh
Library/Contributions/cmd/brew-dirty.rb
Library/Contributions/cmd/brew-leaves.rb
..
Library/Formula/chruby.rb
Library/Formula/cimg.
error: The following untracked working tree files would be overwritten by merge:
Library/Aliases/git-tig
Library/Aliases/libtcnative
Library/Contributions/cmd/brew-bundle.rb
..
Library/Formula/vtclock.rb
Library/Formula/x11vnc.rb
Library/Formula/x265.rb
Library/F
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
答案 0 :(得分:1)
也为我工作:
[ ~] brew install hbase
==> Installing hbase dependency: hadoop
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.2
==> Best Mirror http://www.dsgnwrld.com/am/hadoop/core/hadoop-1.2.1/hadoop-1.2.1
############
答案 1 :(得分:1)
搜索了如何修复brew更新&& brew升级,然后按照Brew update failed: untracked working tree files would be overwritten by merge上的一些说明并在/ usr / local下手动更新权限,我能够安装hbase。
答案 2 :(得分:1)
以下解决了我的问题,代码只是从git获取最新的引用
cd /usr/local && git reset --hard FETCH_HEAD
或如果失败
cd /usr/local && sudo git reset --hard FETCH_HEAD