无论才能、知识多么卓著,如果缺乏热情,则无异纸上画饼充饥,无补于事。

elasticsearch-plugin 命令安装 elasticsearch-analysis-ik 5.2.2

Elasticsearch | 作者 pqy | 发布于2017年03月28日 | 阅读数:6842

es 5.2.2
elasticsearch-analysis-ik 5.2.2
bin/elasticsearch-plugin install https://github.com/medcl/elast ... 2.zip --batch --silent
"ERROR: `elasticsearch` directory is missing in the plugin zip"
已邀请:

pqy

赞同来自:

按 README 上的指引,手动安装 ik plugins 没问题,我用了ansible elasticsearch ,ik 这能这么安装了
 
- hosts: elasticsearch_master_nodes
roles:
- { role: elasticsearch, es_instance_name: "node",
es_config: {
cluster.name: "test-cluster",
discovery.zen.ping.unicast.hosts: "node01, node02, node03",
network.host: "_tun0_, _local_",
http.port: 9200,
transport.tcp.port: 9300,
node.data: false,
node.master: true,
bootstrap.memory_lock: true,
discovery.zen.minimum_master_nodes: 2,
gateway.recover_after_nodes: 2,
action.destructive_requires_name: true,
indices.breaker.total.limit: 70%,
indices.breaker.fielddata.limit: 25%,
indices.breaker.request.limit: 40%,
indices.fielddata.cache.size: 20%,
indices.queries.cache.size: 40%,
indices.memory.index_buffer_size: 10%
}
}
vars:
es_templates: false
es_scripts: true
es_java_install: true
es_major_version: "5.x"
es_version: "5.2.2"
es_heap_size: "2g"
es_api_port: 9200
es_max_map_count: 262144
es_max_open_files: 512000
es_plugins_reinstall: true
es_plugins:
      - plugin: https://github.com/medcl/elast ... 2.zip
但是 install plugins 的时候,
"ERROR: `elasticsearch` directory is missing in the plugin zip"
FAILED - RETRYING: TASK: elasticsearch : Install elasticsearch plugins (5 retries left).Result was: {
"attempts": 1,
"changed": false,
"cmd": [
"/usr/share/elasticsearch/bin/elasticsearch-plugin",
"install",
"https://github.com/medcl/elast ... ot%3B,
"--batch",
"--silent"
],
"delta": "0:00:53.712939",
"end": "2017-03-28 15:50:40.548410",
"failed": true,
"failed_when_result": true,
"invocation": {
"module_args": {
"_raw_params": "/usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/medcl/elast ... 2.zip --batch --silent ",
"_uses_shell": false,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"warn": true
},
"module_name": "command"
},
"rc": 65,
"retries": 6,
"start": "2017-03-28 15:49:46.835471",
"stderr": "",
"stdout": "ERROR: `elasticsearch` directory is missing in the plugin zip",
"stdout_lines": [
"ERROR: `elasticsearch` directory is missing in the plugin zip"
],
"warnings":
}

要回复问题请先登录注册