没有配置的节点可用:[{#transport#-1} {} {IPAddress} {IPADDRESS:9300}]

时间:2018-04-17 13:36:54

标签: scala cassandra elasticsearch-5 elastic4s elassandra

通过elastic4s与elassandra集群建立连接时会出现以下错误。

NoNodeAvailableException [没有配置的节点可用:[{#transport#-1} {...} {IPAddress {IPAddress:9300}]]

  val settings = Settings.builder().put("cluster.name", "Test Cluster").build()
  val client = TcpClient.transport(settings, ElasticsearchClientUri("elasticsearch://ClusterIP:9300"))

0 个答案:

没有答案