0

我正在尝试连接amazon/opendistro-for-elasticsearch:0.9.0下面docker.elastic.co/kibana/kibana:7.0.1是我的 docker compose。我是弹性堆栈的新手,

version: '3'

services:
  application:
    image: amazon/opendistro-for-elasticsearch:0.9.0
    environment:
      - CLUSTER_NAME=cluster
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - opendistro_security.ssl.http.enabled=false
    volumes:
      - data:/usr/share/elasticsearch/data
    restart: always
    ulimits:
      soft: -1
      hard: -1
    ports:
      - 9200:9200
    networks:
      - odfe-net

  kibana:
    image: docker.elastic.co/kibana/kibana:7.0.1
    ports:
      - 5601:5601
    expose:
      - "5601"
    environment:
      ELASTICSEARCH_URL: http://application:9200
    networks:
      - odfe-net


volumes:
  data:

networks:
  odfe-net:

当我运行 docker 文件时,我看到以下错误:

{"type":"log","@timestamp":"2019-05-14T14:23:21Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: https://application:9200/"}

有没有人尝试过这种设置?

4

1 回答 1

0

你可以试试这个https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745/4
或者有几个可能的问题: 1)在应用程序中
没有定义container_name value "application"
2) 你试图连接不兼容版本的 Kibana (7.0.1) 和 ES (opendistro 0.9.0 => bare 6.7.1)

于 2020-02-13T13:41:41.857 回答