我无法在数据库中插入我的实体AvisRendezVous的实例。当我单击保存时,我从服务器收到以下错误:
exception = 'None of the configured nodes are available: [{#transport#-1
}{C6hOYYyORMy7Kbms4pck3g}{localhost}{127.0.0.1:9300}]'
在JHipster文档中,他们说我们需要从docker-compose
开始elasticsearch实例,所以我做到了:
这是我的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
有什么想法吗?