私はElasticsearchでspring-bootを使用しています。プロジェクトはjhipsterを使って作成されました。Spring Elasticsearch - 設定済みのノードがありません
のpom.xmlが含まれています:プロダクションモードで
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>1.4.0.RELEASE</version>
<relativePath/>
</parent>
と
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
を、次のエラーが発生します。
AbstractElasticsearchRepository : failed to load elasticsearch nodes :
org.elasticsearch.client.transport.NoNodeAvailableException: None of
the configured nodes are available: [{#transport#-1}{127.0.0.1}
{localhost/127.0.0.1:9300}]
どのように私はこのエラーを解決することができますか?
デフォルトのelasticsearch設定でjhipsterプロジェクトを実行する場合、jhipster javaプロジェクトがこのバージョンで動作するため、elasticsearhサーバーのバージョンが1.7であることを確認してください。開発プロフィールの – ismail
にはまだ解決できなかったような問題がありました。 – ismail
正常に動作します。ありがとう – Jean