Hello,
I'm setting up a elasticsearch-hadoop connector to pull data to hadoop. I wrote a mapper/reducer job for it and tested on my dev box, where elasticsearch set up on a default 9200 port at http://localhost:9200. However, the prod version is deployed at http://{url}/{prefix} and it's not clear how to properly set job settings in this case. I tried:
conf.set("es.nodes", "{url}");
conf.set("es.port", "443");
conf.set("es.nodes.path.prefix", "{prefix}");
however, it fails with:
Exception in thread "main" org.elasticsearch.hadoop.rest.EsHadoopNoNodesLeftException: Connection error (check network and/or proxy settings)- all nodes failed; tried [[10.205.12.97:443]]
I also tried to specify:
conf.set("es.nodes", "{url}");
conf.set("es.port", "80");
conf.set("es.nodes.path.prefix", "{prefix}");
conf.set("es.net.ssl.protocol","true");
conf.set("es.net.ssl", "true");
, however it fails with:
Exception in thread "main" org.elasticsearch.hadoop.EsHadoopIllegalStateException: Cannot instantiate SSL - true SSLContext not available
at org.elasticsearch.hadoop.rest.commonshttp.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:163)
What would be the right way to configure elasticsearch-hadoop connector to work with elasticsearch over https?
Thank you.