Search code examples
apachehadoophue

Hadoop HUE Timeline Chart is Greyed Out


I am trying to created a Timeline chart in HUE but it is greyed out and does not let me drag the Timeline chart onto the Dashboard.

I am able to create Text Facet, Pie Charts etc without problem but I am not able to create a Timeline chart.

Is Timeline expecting some sort of value or timestamp in the index?

HUE Timeline Greyed Out


Solution

  • We added a UTC timestamp field into the events we were sending so the timestamp ended up looking like for example :

    "timestamp":"2015-11-02T00:14:58Z"
    

    Looking at the index I could see this field showing up as type tdate

    So on the solr container I changed the config :

    /opt/solr/server/solr/configsets/data_driven_schema_configs/conf/solrconfig.xml

    In the config I replaced :

    <str name="fieldType">tdates</str>
    

    With :

    <str name="fieldType">tdate</str>
    

    reloaded the container and sent new events, the Timeline button was enabled and I was able to drag it onto the dashboard.

    The dashboard still doesn't look right though because the metric I want to display isn't showing up in the list of available fields.

    Looking at the index the metric field is showing up as type tlongs