ElasticSearch Spark Hadoop Connector

Continuing the discussion from EsHadoopInvalidRequest: [POST]:

Theses same commands work fine when I am using the localhost Elasticsearch cluster which consists of three nodes.
The previous two example only use one node. But they each give different errors. So there must be something else I don't understand.

Thank you

Likely your localhost cluster is configured differently then the remote clusters.