Thanks for reporting and sorry for the mistake. I've fixed this in master and 
corrected the existing docs.

Cheers!

On 3/14/2014 12:15 AM, Deepak Subhramanian wrote:
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 
<mailto: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
<https://groups.google.com/d/msgid/elasticsearch/26aada4e-4a71-4cbe-8ab7-d6d8efeb8b19%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
Costin

--
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/5323266F.2030905%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to