Hi,
I'm trying to write a Spark dataset to es but I get following error while executing following piece of code -
items.write().format("es").options(getOptions()).save();
I'm also setting following options while trying to write the dataset
addOption(Constants.ELASTICSEARCH_HOST,host);
addOption(Constants.ELASTICSEARCH_PORT, "9200");
addOption(Constants.INDEX,index);
Error encountered
org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: resource must be specified for Elasticsearch resources.
How do I know what else is required for it to write the data / to specify the resource ?