前言
Elasticsearch Plugins 是一種靈活的可自定義擴充 Elasticsearch 特性的機制
Plugins are a way to enhance the core Elasticsearch functionality in a custom manner. They range from adding custom mapping types, custom analyzers, native scripts, custom discovery and more.
大體可分為三類:Java plugins、Site plugins、Mixed plugins
- Java plugins 這一類隻包含 JAR 檔案 ,并且叢集中每一個節點都得安裝,安裝後都得重新開機才能生效
- Site plugins 這一類包含一些 Javascript, HTML, 和 CSS 檔案,可以直接在ES裡使用,隻要在一個節點上進行安裝,也不必重新開機就有能生效,使用這種方式進行通路
http://yournode:9200/_plugin/[plugin name]
- Mixed plugins 結合以上的兩種特性
下面對 Elasticsearch Plugins 的安裝與配置方法進行分享,詳細可以參看 ES 的 官方文檔
Tip: 目前的版本為 Elasticsearch 2.1.1
概要
Plugin管理
[root@h102 elasticsearch]# rpm -qa | grep elast
elasticsearch-2.1.1-1.noarch
[root@h102 elasticsearch]# rpm -ql elasticsearch-2.1.1-1.noarch | grep plugin
/usr/share/elasticsearch/bin/plugin
/usr/share/elasticsearch/plugins
[root@h102 elasticsearch]# /usr/share/elasticsearch/bin/plugin -h
NAME
plugin - Manages plugins
SYNOPSIS
plugin <command>
DESCRIPTION
Manage plugins
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"
[root@h102 elasticsearch]#
複制