Cannot open stream inlined queries need to be marked as such through `?` and `{}` ES Spark connection

I am trying to connect elastic search from Spark java code i have set the ssl to true I have provided trust and keystore also in Sparkconf.
But am getting below error when am trying to read the data from RDD

Caused by: org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: Cannot open stream (inlined queries need to be marked as such through ? and {}) for resource I:\cert-elk\xyz.truststore
at org.elasticsearch.hadoop.util.IOUtils.open(IOUtils.java:180)
at org.elasticsearch.hadoop.util.IOUtils.open(IOUtils.java:185)
at org.elasticsearch.hadoop.rest.commonshttp.SSLSocketFactory.loadKeyStore(SSLSocketFactory.java:178)
at org.elasticsearch.hadoop.rest.commonshttp.SSLSocketFactory.loadKeyManagers(SSLSocketFactory.java:193)
at org.elasticsearch.hadoop.rest.commonshttp.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:166)
... 31 more

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