无法将elasticsearch-opendistro与kibana连接

时间:2019-05-14 14:32:11

标签: docker kibana elasticsearch-opendistro

我正在尝试将amazon/opendistro-for-elasticsearch:0.9.0docker.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/"}

有人尝试过这种设置吗?

1 个答案:

答案 0 :(得分:0)

您可以尝试使用https://discuss.elastic.co/t/kibana-unable-to-revive-connection-no-living-connections/165745/4
或有几个可能的问题:
1)在值为“ application”的应用程序中没有定义 container_name
2)您正在尝试连接Kibana(7.0.1)和ES(opendistro 0.9.0 =>裸6.7.1)的不兼容版本