Hi,
I was struggling to load json document to ES from Hive. Later realised that 
there was a mistake in documentation. 

CREATE EXTERNAL TABLE json (data STRING 
<http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/current/hive.html#CO17-1>)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES('es.resource' = '...',
              'es.json.input` = 'yes' 
<http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/current/hive.html#CO17-2>);

Correct parameter  name is es.input.json instead of es.json.input and value is 
'true' instead of 'yes'

CREATE EXTERNAL TABLE json (data STRING 
<http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/current/hive.html#CO17-1>)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES('es.resource' = '...',
              'es.input.json' = 'true' 
<http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/current/hive.html#CO17-2>);

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/26aada4e-4a71-4cbe-8ab7-d6d8efeb8b19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to