简体   繁体   中英

Manual install of Elasticsearch plugins

Because my Elasticsearch server is behind a proxy, I can't directly install plugins using the command under bin.

So I tried uncompressing some of them in the plugins directory, with no luck.

Specifically I tried this https://github.com/jprante/elasticsearch-knapsack and I can't get it to work.

Any help?

Typically uncompressing the plugin file into plugins directory should work as long as file access rights are not messed up. To verify that plugin is installed correctly check that elasticsearch home directory contains directory called plugins/knapsack and that this directory contains two files: commons-compress-1.4.1.jar and elasticsearch-knapsack-2.1.2.jar

You can also download plugin zip file to a temporary location and then install it by specifying path to it using --url parameter:

bin/plugin --install knapsack --url file:///Full/Path/To/elasticsearch-knapsack-2.1.2.zip

See Plugins documentation for more information.

我使用以下命令在防火墙后面安装插件:

bin/plugin -DproxyHost=myproxy.proxy.com -DproxyPort=80 --install lmenezes/elasticsearch-kopf

Many times, when using Linux inside a Proxied network, I had to install cNTLM or some other software proxy. Anyway, what worked for me is to download the file with the Plugin (ZIP, TAR.GF, whatever) and then just unzip it on the plugins directory. Check file permissions, and you are good to go.

I installed elasticsearch using Homebrew on my Mac and was getting this ERROR: Could not find plugin descriptor 'plugin-descriptor.properties' in plugin zip. The bin directory is /usr/local/Cellar/elasticsearch/2.0.0_1/bin I did sudo plugin install license first then sudo plugin install marvel-agent and this solved the problem. https://www.elastic.co/guide/en/marvel/current/installing-marvel.html

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