[英]brew installation of hbase?
看來brews確實具有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
我沒有創建/修改釀造配方的經驗。 這是下載/調整沖泡配方文件以獲取正確的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
也為我工作:
[ ~] 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。
以下解決了我的問題,代碼只是從git獲取最新引用
cd /usr/local && git reset --hard FETCH_HEAD
還是失敗
cd /usr/local && sudo git reset --hard FETCH_HEAD
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.