简体   繁体   中英

brew installation of hbase?

It appears brew DOES have a recipe for hbase, but it fails with a 404 when downloading hbase itself.

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

A corrected url would be: http://mirror.reverse.net/pub/apache/hbase/hbase-0.94.11/hbase-0.94.11.tar.gz

I am not experienced in creating/modifying brew recipes. Would this be a simple case of downloading/tweaking a brew recipe file for a correct hbase download url and then re-trying? What would be the steps?

Update Based on comments below i did

$brew update && brew upgrade

This failed for me:

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

Worked for me as well:

[ ~] 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
############

在搜索了如何修复Brew更新&& brew升级之后,然后按照一些Brew更新失败的指示进行操作:未跟踪的工作树文件将被merge覆盖并在/ usr / local下进行一些手动权限更新,因此我能够安装hbase。

The following solved my problem, the code simply gets latest references from git

cd /usr/local && git reset --hard FETCH_HEAD

or if it fails

cd /usr/local && sudo git reset --hard FETCH_HEAD

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM