deepakas
(deepakas)
March 13, 2014, 10:15pm
1
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+unsubscribe@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 .
costin
(Costin Leau)
March 14, 2014, 3:55pm
2
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+unsubscribe@googlegroups.com mailto:elasticsearch+unsubscribe@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+unsubscribe@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 .
deepakas
(deepakas)
April 8, 2014, 11:00am
3
Thanks Costin
On Fri, Mar 14, 2014 at 3:55 PM, Costin Leau costin.leau@gmail.com wrote:
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+unsubscribe@googlegroups.com <mailto:elasticsearch+
unsubscribe@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%40GGGROUPS CASINO – Real Slot Casino for 10,000+ Senior Players
email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout .
--
Costin
--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/elasticsearch/-59NmirS6sY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@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 .
--
Deepak Subhramanian
--
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+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CA%2BUubihj-oaNToDHagA6gVi98yrivcinX8ygfhyKmxq9GG3L7w%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .