Re: Error running ES DSL in hadoop mapreduce

2014-08-25 Thread Adrien Grand
Thanks Sona, This stack trace indicates a bug in the cardinality aggregation. I just opened an issue for it: https://github.com/elasticsearch/elasticsearch/issues/7429 In order to help me understand/reproduce this bug, could you please provide the mappings of your ExamRowKey and body_part

Re: Error running ES DSL in hadoop mapreduce

2014-08-25 Thread Sona Samad
Thanks Adrien. The ExamRowKey and body_part are Strings uploaded from csv file using LogStash to ElasticSearch. - how reproducible is it? Ie. if you run this query 10 times, how many of these queries will write such lines to the logs? This query returns the error each time its run in the

Re: Error running ES DSL in hadoop mapreduce

2014-08-25 Thread Sona Samad
One more update on the issue: I tried changing the query using 'sum' { size:0, aggs: { group_by_BodyPart: { terms: { field: body_part, size: 5, order : { examcount : desc } }, aggs : { examcount : { sum : { field : ExamRowKey } }

Re: Error running ES DSL in hadoop mapreduce

2014-08-24 Thread Sona Samad
Hi Adrien, My elasticsearch version is : elasticsearch-1.2.1 The Maven dependency for hadoop: dependency groupIdorg.elasticsearch/groupId artifactIdelasticsearch-hadoop-mr/artifactId version2.0.1/version /dependency The full stack trace is given below: [2014-08-25

Error running ES DSL in hadoop mapreduce

2014-08-22 Thread Sona Samad
Hi, I was trying to run the below query from hadoop mapreduce: { aggs: { group_by_body_part: { terms: { field: body_part, size: 5, order : { examcount : desc } }, aggs: { examcount: { cardinality: { field: ExamRowKey

Re: Error running ES DSL in hadoop mapreduce

2014-08-22 Thread Adrien Grand
Hi Sona, Would you have the rest of the stack trace, I would like to know where the ArrayIndexOutOfBoundsException occurred? What version of Elasticsearch are you using? On Fri, Aug 22, 2014 at 1:37 PM, Sona Samad sona.sa...@gmail.com wrote: Hi, I was trying to run the below query from