Unable to write to remote Elasticsearch node with ES Spark

I tried writing to my local version es and it works fine, but when connecting to a remote host, no document is written to the index. Although the index was automatically created.

What could be wrong?
EsSpark.saveToEs(userTweetRDD, "twitter/test", Map("es.nodes" -> "xx.xx.xx.xxx", "es.cluster.name" -> xxxx-xxxxx"))

Can anyone tell me what I am doing wrong?

Thanks in advance...

1 Like

Was able to solve by setting this:
"es.nodes.discovery" -> "false" Hope this helps someone