EsSpark.saveTo报错:EsHadoopNoNodesLeftException: Connection error (check network and/or proxy settings

报错:

报错1:
Get org.elasticsearch.hadoop.rest.EsHadoopNoNodesLeftException: Connection 
error (check network and/or proxy settings)- all nodes failed; tried

报错2:
org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Discovery cannot be 
enabled when running in WAN mode

解决:

添加下面参数:

"es.nodes.wan.only" -> "true"

如果有设置则移除下面参数:

es.nodes.discovery

参考链接:链接

完!

你可能感兴趣的:(Elasticsearch)