代码之家  ›  专栏  ›  技术社区  ›  Couim

JHipster-没有配置的节点可用JHipster 5.x ElasticSearch

  •  0
  • Couim  · 技术社区  · 6 年前

    我无法在数据库中插入实体avisreendezvous的实例。单击“保存”时,服务器出现以下错误:

    exception = 'None of the configured nodes are available: [{#transport#-1
    }{C6hOYYyORMy7Kbms4pck3g}{localhost}{127.0.0.1:9300}]'
    

    Internal server error image

    在JHipster文档中,他们说我们需要用 docker-compose ,所以我做到了:

    Docker-compose image

    这是我的elasticsearch.yml:

    version: '2'
    services:
        apspg_elastic-elasticsearch:
            image: elasticsearch:5.6.5
            # volumes:
            #     - ~/volumes/jhipster/APSPG_Elastic/elasticsearch/:/usr/share/elasticsearch/data/
            ports:
                - 9200:9200
                - 9300:9300
            command: -Enetwork.host=0.0.0.0 -Ediscovery.type=single-node
    

    有什么想法吗?

    0 回复  |  直到 6 年前