oranie's blog

旧:iをgに変えると・・・なんだっけ・・・

ElasticSearchでpluginを入れる際に「reason: failed to download」となった際の対処法

考えられる事は2点
・ファイルを設置する為のパーミッション
・plugin名のtypo

僕はパーミッションで引っかかりました。こんな感じ。

[oranie@dev-oranie-test01 ~]$ /usr/local/elasticsearch/bin/plugin -install royrusso/elasticsearch-HQ
-> Installing royrusso/elasticsearch-HQ...
Trying https://github.com/downloads/royrusso/elasticsearch-HQ/elasticsearch-HQ-0.19.10.zip...
Trying https://github.com/royrusso/elasticsearch-HQ/zipball/v0.19.10...
Trying https://github.com/royrusso/elasticsearch-HQ/zipball/master...
Failed to install royrusso/elasticsearch-HQ, reason: failed to download

で、理由が「reason: failed to download」とかとても不親切ですね!僕はなんかリダイレクトしまくっているからなんかおかしいとか勝手にエスパー判断して2分後にみんなから「出来るよ?」と言われ大恥かきました。

参考ツイート