我刚打酱油去了,不好意思

Connection error (check network and/or proxy settings)- all nodes failed

Elasticsearch | 作者 frankZu | 发布于2020年07月17日 | 阅读数:3507

spark配置auth后不能连接到es
错误信息:Connection error (check network and/or proxy settings)- all nodes failed; tried [[host1:9200]] 

new SparkConf()
 .set("es.nodes", elasticsearchHost)
 .set("es.port", elasticsearchPort)
.set("es.nodes.wan.only","true")
.set("es.net.http.auth.user", "username")  
.set("es.net.http.auth.pass", "password")
 
Java : 1.8
elasticsearch 7.0.0
scala 2.11
spark 2.4
hadoop 2.6.0
 
已邀请:

要回复问题请先登录注册