我想和Docker一起负责Elasticsearch和Kibana。我已经在虚拟机(Ubuntu )上安装了对接器,并使用了前面提到的docker-compose.yml、elasticsearch.yml和kibana.yml:https://stackoverflow.com/a/44005640/1843511
现在,它首先启动了额外的插件(head_540),这个插件可以在http://ip_of_my_vm:9100上找到,但Elasticsearch和kibana都没有。当我试图到达vm:5601时,Kibana给了我一个“太多重定向”的错误。我发现它试图将我重定向到一个登录页面,原因可能是X-Pack是带有图像的交付并自动启用的(但并不像它看起来的那样,因为我无法打开url)。因此,我尝试通过编辑elasticsearch.yml来禁用它:
cluster.name: "chimeo-docker-cluster"
node.name: "chimeo-docker-single-node"
network.host: 0.0.0.0
xpack.security.enabled: false
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: "Authorization"和kibana.yml:
server.name: kibana
server.host: "0"
xpack.security.enabled: false
xpack.reporting.enabled: false
xpack.monitoring.enabled: false
elasticsearch.url: http://elasticsearch:9200
# elasticsearch.username: "elastic"
# elasticsearch.password: "changeme"
xpack.monitoring.ui.container.elasticsearch.enabled: false现在,当docker-compose up引导作曲家时,我可以找到Elasticsearch,但是kibana被卡住了:
kibana_540 | {"type":"log","@timestamp":"2018-04-27T10:56:26Z","tags":["info","optimize"],"pid":1,"message":"Optimizing and caching bundles for graph, ml, kibana, timelion and status_page. This may take a few minutes"}现在,除了这些错误
elasticsearch_540 | [2018-04-27T10:58:12,100][ERROR][o.e.x.m.e.l.LocalExporter] failed to get monitoring watch [h7x_x5GCTjqL2wadFDSM8w_logstash_version_mismatch]
elasticsearch_540 | java.lang.IllegalStateException: watch store not started看起来Elasticsearch实际上是有效的,因为我可以访问http://ip_of_my_vm:9200的url,但是我的kibana没有,额外的插件也没有。
有人能帮我吗?
发布于 2018-04-28 09:45:09
因此,优化包似乎花费了相当长的时间,因为我今早检查了服务器,一切似乎都正常。由于Kibana的内部服务器错误,我不得不重新启动docker,但是现在一切都很好。这些是我的YAML文件。顺便说一句,我禁用了x包,因为我不使用它,我从一开始就对x包有一些问题:
docker-compose.yml
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0
container_name: elasticsearch_540
environment:
- http.host=0.0.0.0
- transport.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms4g -Xmx4g"
volumes:
- esdata:/usr/share/elasticsearch/data
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
- 9300:9300
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 4g
cap_add:
- IPC_LOCK
kibana:
image: docker.elastic.co/kibana/kibana:5.4.0
container_name: kibana_540
environment:
- SERVER_HOST=0.0.0.0
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- 5601:5601
headPlugin:
image: mobz/elasticsearch-head:5
container_name: head_540
ports:
- 9100:9100
volumes:
esdata:
driver: localelasticsearch.yml
cluster.name: "chimeo-docker-cluster"
node.name: "chimeo-docker-single-node"
network.host: 0.0.0.0
xpack.security.enabled: false
xpack.graph.enabled: false
xpack.ml.enabled: false
xpack.monitoring.enabled: false
xpack.watcher.enabled: false
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: "Authorization"kibana.yml
cluster.name: "chimeo-docker-cluster"
node.name: "chimeo-docker-single-node"
network.host: 0.0.0.0
xpack.security.enabled: false
xpack.graph.enabled: false
xpack.ml.enabled: false
xpack.monitoring.enabled: false
xpack.reporting.enabled: false
xpack.watcher.enabled: false
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: "Authorization"正如我前面提到的,我从https://stackoverflow.com/a/44005640/1843511获取了文件,但是在elasticsearch.yml和kibana.yml中禁用了x包,并且增加了堆的大小,因为内存不足了几次。
编辑:
我在这里共享了我当前的集群配置:https://gist.github.com/ErikvdVen/8207e39b27472361378bd3909aa247ea
发布于 2018-04-27 12:34:21
我是这个地区的新手,但几次前我成功地使它运转起来。你想把麋鹿堆装好吗?因为这里似乎没有提到logstash服务,而您所犯的错误是关于"logstash_version_mismatch“。
你能给我们提供你的船坞-Compose.yml使它更清楚吗?:)
https://stackoverflow.com/questions/50061108
复制相似问题