Hi,
From an Hadoop cluster I can request my index using curl, like this : curl -u user:pwd -X GET http://mynode:9020/myindex
, it works,
but when I try to request using Hive (Beeline) I have the famous exception "Cannot detect ES version".
My external table has been created using ES handler like this :
CREATE EXTERNAL TABLE json (data STRING)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES('es.resource' = 'myindex', 'es.input.json` = 'yes', 'es.nodes' = 'XXXX', 'es.port' = '9020');
and a select request on this table returns the ES version error.
My ES instance and Hive instance are on the same LAN, ping, telnet and curl are ok. I tried to set 'es.nodes.wan.only' to true but same result. In verbose mode on Beeline there is nothing more I can use to resolve this, only a "org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: null".
Thanks for your help