Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch 自定义插件 #23

Open
hlwanghl opened this issue Nov 1, 2019 · 0 comments
Open

Elasticsearch 自定义插件 #23

hlwanghl opened this issue Nov 1, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@hlwanghl
Copy link
Contributor

hlwanghl commented Nov 1, 2019

目前只在制作映像时安装的插件,后续不允许用户自己安装。后面做成两部分:除了自带的插件,也允许用户自己安装。自带的部分可以放在系统盘,自定义安装的放在 /data 数据盘。暂定下面的目录结构:

/opt/elasticsearch/current/plugins -> /data/elasticsearch/plugins/
/data/elasticsearch/plugins
- analysis-ik     -> /opt/elasticsearch/current/plugins.default/analysis-ik/
- analysis-pinyin -> /opt/elasticsearch/current/plugins.default/analysis-pinyin/
...

安装操作可以有几种方案:

  • 可以通过自定义服务让用户执行安装插件的操作,用户需要指定 URL 类型的插件,比如 http://xxx/plugin.zip,然后所有 ES 节点执行 elasticsearch-plugin install 命令。但后面新增的节点没法自动安装,也需要在新增节点后用户再执行一次。

  • 可以通过集群参数指定,把额外的插件以字符串的形式定义在集群参数里,中间以空格或者其他分隔符隔开,然后在 start cmd 里先执行安装操作再启动,这样可以避免上个方案的问题,后面所有新增的节点也不用手动执行安装命令了。

@hlwanghl hlwanghl added this to the 2.2.0 milestone Nov 1, 2019
@hlwanghl hlwanghl added the enhancement New feature or request label Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant