關(guān)于elasticsearch Transport模塊問(wèn)題
本地安裝的是elasticserach-6.6.2版本單機(jī)部署,在查詢es集群數(shù)據(jù)報(bào)錯(cuò)提示:
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available
這個(gè)是不是maven中Transport版本有問(wèn)題
還有就是es官方已經(jīng)在新版本中廢棄Transport了,在實(shí)戰(zhàn)課程中是用的spring.data嗎
<properties> ????<elasticsearch.version>5.5.2</elasticsearch.version> </properties> <dependencies> ????<dependency> ????????<groupId>org.springframework.boot</groupId> ????????<artifactId>spring-boot-starter-web</artifactId> ????</dependency> ????<!--<dependency>--> ????????<!--<groupId>org.springframework.boot</groupId>--> ????????<!--<artifactId>spring-boot-starter-data-elasticsearch</artifactId>--> ????<!--</dependency>--> ????<dependency> ????????<groupId>org.elasticsearch.client</groupId> ????????<artifactId>transport</artifactId> ????????<version>${elasticsearch.version}</version> ????</dependency> ?</dependencies>
2020-01-02
保證transport的版本號(hào)跟你的elasticsearch版本一致