JHipster-所有配置的节点都不可用Jhipster 5.x ElasticSearch

时间:2018-08-02 14:19:19

标签: docker spring-boot elasticsearch jhipster

我无法在数据库中插入我的实体AvisRendezVous的实例。当我单击保存时,我从服务器收到以下错误:

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

Internal server error image

在JHipster文档中,他们说我们需要从docker-compose开始elasticsearch实例,所以我做到了:

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 个答案:

没有答案