Save data from Databricks to ElasticSearch Cloud

While executing the Databricks notebook to save data in Elasticsearch cloud if you are getting below error:

“org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Cannot detect ES version - typically this happens if the network/Elasticsearch cluster is not accessible or when targeting a WAN/Cloud instance without the proper setting 'es.nodes.wan.”

To solve this issue you have to pass the credential along with the URL of elastic search.

val esURL = "https://elastic-url"

val df ="header","true").csv("/mnt/akc_breed_info.csv")
.option("es.nodes", esURL)

If you still face any issue please let me know.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.