I'm getting the following error when trying to add a histogram panel to a
Kibana dashboard. Could someone help me interpret what the problem might be?
ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData
Well, at a high level, PagedBytesIndexFieldData is a data structure that
holds strings in memory, while IndexNumericFieldData is for numeric values.
So it appears that something is trying to use string field data for a
numeric operation.
Can you provide the mapping of your index, and the histogram that you are
trying to create (on what fields)? What version of Elasticsearch are you
using?
-Zach
On Friday, September 20, 2013 11:06:09 AM UTC-4, David Kincaid wrote:
I'm getting the following error when trying to add a histogram panel to a
Kibana dashboard. Could someone help me interpret what the problem might be?
ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData
Thanks for the info. As soon as I looked at the mapping to send it to the
list I saw the problem. The field that I was trying to create the histogram
on is supposed to be a date, but it is actually a string. Thanks for
pointing me in the right direction.
Dave
On Saturday, September 21, 2013 12:49:50 PM UTC-4, Zachary Tong wrote:
Well, at a high level, PagedBytesIndexFieldData is a data structure that
holds strings in memory, while IndexNumericFieldData is for numeric values.
So it appears that something is trying to use string field data for a
numeric operation.
Can you provide the mapping of your index, and the histogram that you are
trying to create (on what fields)? What version of Elasticsearch are you
using?
-Zach
On Friday, September 20, 2013 11:06:09 AM UTC-4, David Kincaid wrote:
I'm getting the following error when trying to add a histogram panel to a
Kibana dashboard. Could someone help me interpret what the problem might be?
ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData
Thanks for the info. As soon as I looked at the mapping to send it to the
list I saw the problem. The field that I was trying to create the histogram
on is supposed to be a date, but it is actually a string. Thanks for
pointing me in the right direction.
Dave
On Saturday, September 21, 2013 12:49:50 PM UTC-4, Zachary Tong wrote:
Well, at a high level, PagedBytesIndexFieldData is a data structure that
holds strings in memory, while IndexNumericFieldData is for numeric values.
So it appears that something is trying to use string field data for a
numeric operation.
Can you provide the mapping of your index, and the histogram that you are
trying to create (on what fields)? What version of Elasticsearch are you
using?
-Zach
On Friday, September 20, 2013 11:06:09 AM UTC-4, David Kincaid wrote:
I'm getting the following error when trying to add a histogram panel to
a Kibana dashboard. Could someone help me interpret what the problem might
be?
ClassCastException[org.**elasticsearch.index.fielddata.**plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.
IndexNumericFieldData
can you provide us with some more information (or even issue a bug report),
when this happens (providing mapping and your query should be sufficient).
It makes more sense to return a valid error value (like "Dont use a string
field, numeric needed") to the user instead of some weird class cast
exception
Thanks for the info. As soon as I looked at the mapping to send it to the
list I saw the problem. The field that I was trying to create the histogram
on is supposed to be a date, but it is actually a string. Thanks for
pointing me in the right direction.
Dave
On Saturday, September 21, 2013 12:49:50 PM UTC-4, Zachary Tong wrote:
Well, at a high level, PagedBytesIndexFieldData is a data structure that
holds strings in memory, while IndexNumericFieldData is for numeric values.
So it appears that something is trying to use string field data for a
numeric operation.
Can you provide the mapping of your index, and the histogram that you are
trying to create (on what fields)? What version of Elasticsearch are you
using?
-Zach
On Friday, September 20, 2013 11:06:09 AM UTC-4, David Kincaid wrote:
I'm getting the following error when trying to add a histogram panel to
a Kibana dashboard. Could someone help me interpret what the problem might
be?
ClassCastException[org.**elasticsearch.index.fielddata.**plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.
IndexNumericFieldData
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.