插件能额外扩展elasticsearch功能,提供各类功能等等。有三种类型的插件:
1 2 3 4 5 6 7 8 9 | # ./bin/plugin -h SYNOPSIS plugin < command > COMMANDS install Install a plugin remove Remove a plugin list List installed plugins NOTES [ * ] For usage help on specific commands please type “plugin <command> -h” |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # ./bin/plugin install -h NAME install – Install a plugin SYNOPSIS plugin install < name or url > DESCRIPTION This command installs an elasticsearch plugin . It can be used as follows : Officially supported or commercial plugins require just the plugin name : plugin install analysis – icu plugin install shield Plugins from GitHub require ‘username/repository’ or ‘username/repository/version’ : plugin install lmenezes / elasticsearch – kopf plugin install lmenezes / elasticsearch – kopf / 1.5.7 Plugins from Maven Central or Sonatype require ‘groupId/artifactId/version’ : plugin install org . elasticsearch / elasticsearch – mapper – attachments / 2.6.0 Plugins can be installed from a custom URL or file location as follows : plugin install http : //trustauth.cn//my-plugin-1.0.0.zip plugin install file : / path / to / my – plugin – 1.0.0.zip OFFICIAL PLUGINS The following plugins are officially supported and can be installed by just referring to their name – analysis – icu – analysis – kuromoji – analysis – phonetic – analysis – smartcn – analysis – stempel – cloud – aws – cloud – azure – cloud – gce – delete – by – query – discovery – multicast – lang – javascript – lang – python – mapper – murmur3 – mapper – size OPTIONS – t , — timeout Timeout until the plugin download is abort – v , — verbose Verbose output – h , — help Shows this message |
安装head插件
1 | bin / plugin install mobz / elasticsearch – head |
安装中文分词插件ik,请参加之前的文章。
安装Marvel插件
1 2 | # bin/plugin install license # bin/plugin install marvel-agent |
这个插件已经集成到kibana上了,kibana内容后续再说,还需要在kibana上安装Marvel插件
1 | # bin/kibana plugin –install elasticsearch/marvel/latest |
Marvel是收费的,监控工具,推荐使用。2.0版本会报NullPointerException错误,还未找到解决方法。
1 | # ./bin/plugin list |
1 | # ./bin/plugin remove plugin_name |
文章转载来自:trustauth.cn