Elasticsearch插件体系

Elasticsearch插件体系

ID:37710347

大小:26.30 KB

页数:5页

时间:2019-05-29

Elasticsearch插件体系_第1页
Elasticsearch插件体系_第2页
Elasticsearch插件体系_第3页
Elasticsearch插件体系_第4页
Elasticsearch插件体系_第5页
资源描述:

《Elasticsearch插件体系》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、Elasticsearch插件体系插件分类Elasticsearch支持三种类型的插件:1、java插件这些插件只包含Jar文件,并且必须安装在集群中的每个节点上。安装后,每个节点必须重新启动,该插件才变得可见。2、站点插件这些插件包含了静态的Web内容,如JavaScript,HTML和CSS文件,可直接从Elasticsearch访问。站点插件可能只需要在一个节点上安装,并且不需要重新启动就能变得可见。站点插件的内容是通过一个类似的网址访问:HTTP://yournode:9200/_plugin/[插件名称]3、混合插件混合插件同时包含jar文件和静态的Web内容插件管理

2、命令查看1、查看plugin命令用法:sudobin/plugin-h插件安装2、安装Elasticsearch核心插件命令格式:sudobin/plugininstall[plugin_name]例子:sudobin/plugininstallanalysis-icu该命令将安装与你的Elasticsearch版本相匹配的插件版本。3、安装社区插件或非核心插件非核心插件由Elasticsearch提供,或者由社区提供,可以从download.elastic.co,Maven(中央和Sonatype),或从GitHub安装。在这种情况下,命令如下:sudobin/plugini

3、nstall[org]/[user

4、component]/[version]例子:sudobin/plugininstalllmenezes/elasticsearch-kopfsudobin/plugininstalllmenezes/elasticsearch-kopf/2.xInstallsthelatestversionfromGitHub.Installsthe2.xversionfromGitHub.从MavenCentral/Sonatype安装时, [org] 需要替换为groupId,[user

5、component] 替换为 artifactId.Forplu

6、ginfromSonatype,run:sudobin/plugininstallorg.elasticsearch.plugin/mapper-attachments/3.0.0当从download.elastic.co 或MavenCentral/Sonatype安装时,version是必须的。自定义URL或文件系统插件可以直接从自定义URL下载,格式如下:sudobin/plugininstall[url]mustbeavalidURL,thepluginnameisdeterminedfromitsdescriptor.例如从本地文件系统安装插件:sudobin/plu

7、gininstallfile:///path/to/plugin.zipThepluginscriptwillrefusetotalktoanHTTPSURLwithanuntrustedcertificate.Touseaself-signedHTTPScert,youwillneedtoaddtheCAcerttoalocalJavatruststoreandpassthelocationtothescriptasfollows:sudobin/plugin-Djavax.net.ssl.trustStore=/path/to/trustStore.jksinstallht

8、tps://....查询及删除插件列出已加载的插件sudobin/pluginlist删除插件方式1:删除plugins/目录下的插件对应的文件夹,即可删除插件,方式2:使用脚本:sudobin/pluginremove[pluginname]插件删除以后需要重新启动服务节点。plugin命令的其他参数Silent/Verbose模式--verbose: 输出调试信息--silent :关闭所有输出plugin命令可能返回的错误码:0everythingwasOK64unknowncommandorincorrectoptionparameter74IOerror70anyot

9、hererror指定自定义配置文件目录如果elasticsearch.yml在自定义位置,使用plugin命令时需要指定配置文件位置。格式如下:sudobin/plugin-Des.path.conf=/path/to/custom/config/dirinstall也可以设置 CONF_DIR 环境变量来设置自定义的配置文件目录。超时设置默认情况,插件脚本将在未下载的时候等待下去。超时参数可以用来显式地指定等待多长时间。下面是将其设置为不同的值的一些例子:#Wait

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。