elasticsearch - 从 OpenDistro docker 镜像运行时为 "Kibana server is not ready yet"

标签 elasticsearch kibana elasticsearch-opendistro

我使用以下 docker-compose 来运行 elasticsearch 集群和 kibana:

services:
  odfe-node1:
    image: amazon/opendistro-for-elasticsearch:1.3.0
    container_name: odfe-node1
    environment:
      - cluster.name=odfe-cluster
      - node.name=odfe-node1
      - discovery.seed_hosts=odfe-node1,odfe-node2
      - cluster.initial_master_nodes=odfe-node1,odfe-node2
      - bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
        hard: 65536
    volumes:
      - odfe-data1:/usr/share/elasticsearch/data
    ports:
      - 9200:9200
      - 9600:9600 # required for Performance Analyzer
    networks:
      - odfe-net
  odfe-node2:
    image: amazon/opendistro-for-elasticsearch:1.3.0
    container_name: odfe-node2
    environment:
      - cluster.name=odfe-cluster
      - node.name=odfe-node2
      - discovery.seed_hosts=odfe-node1,odfe-node2
      - cluster.initial_master_nodes=odfe-node1,odfe-node2
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536
        hard: 65536
    volumes:
      - odfe-data2:/usr/share/elasticsearch/data
    networks:
      - odfe-net
  kibana:
    image: amazon/opendistro-for-elasticsearch-kibana:1.3.0
    container_name: odfe-kibana
    ports:
      - 5601:5601
    expose:
      - "5601"
    environment:
      ELASTICSEARCH_URL: https://odfe-node1:9200
      ELASTICSEARCH_HOSTS: https://odfe-node1:9200
      LOGGING_VERBOSE: "true"
    networks:
      - odfe-net

volumes:
  odfe-data1:
  odfe-data2:

networks:
  odfe-net:

日志中没有显示任何错误,并且弹性集群运行良好 - 我可以查询和提交文档;但是当我尝试通过访问 http://localhost:5601 加载 Kibana 时在浏览器中,我在浏览器和日志中收到 Kibana 服务器尚未准备好 消息。

对于可能出现的问题有什么想法吗?

最佳答案

事实证明,我必须为 Docker 服务分配更多内存(设置 -> 高级),Kibana 现在按预期启动

关于elasticsearch - 从 OpenDistro docker 镜像运行时为 "Kibana server is not ready yet",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59671757/

相关文章:

elasticsearch - Fos Elastica从搜索查询中删除常用词(或其他)。

mongodb - 使用ELK堆栈将用户信息添加到集中式日志记录中

elasticsearch - Elasticsearch-如何在所有索引和文档中搜索词的一部分

elasticsearch - 为什么我的时间戳范围查询什么都不返回

elasticsearch - Elasticsearch knn索引(aws\opendistro)是否支持稀疏矢量索引?

elasticsearch - Open Distro Elasticsearch-使用JWT向Kibana进行身份验证

javascript - 在 JavaScript 中构建 _msearch 查询

java - 卡在 ElasticSearch GroupBy 查询中

tsql - ElasticSearch中的多字段通配符搜索

elasticsearch - 使用Kibana在 Elasticsearch 中过滤邮件正文