# Load the date field from hive to elasticsearch and visualize it on kibana

**URL:** <https://discuss.elastic.co/t/load-the-date-field-from-hive-to-elasticsearch-and-visualize-it-on-kibana/127209>\
**Category:** Elasticsearch\
**Created:** [April 8, 2018, 12:32pm UTC](https://discuss.elastic.co/t/load-the-date-field-from-hive-to-elasticsearch-and-visualize-it-on-kibana/127209 "2018-04-08T12:32:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARRAKCHI\_Tarik](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@MARRAKCHI\_Tarik](https://discuss.elastic.co/u/MARRAKCHI_Tarik)\
**Post date:** [April 8, 2018, 12:32pm UTC](https://discuss.elastic.co/t/load-the-date-field-from-hive-to-elasticsearch-and-visualize-it-on-kibana/127209/1 "2018-04-08T12:32:50Z")

</div>

Hi,

I have a Hive database and I connected it with es-hadoop, but I have a problem concerning the date type field, I can not load the date on elasticsearch and visualize it on Kibana, here is my problem in detail:

here is my table on hive :

> ```
> create external table test (date_test string)
> stored by 'org.elasticsearch.hadoop.hive.EsStorageHandler' 
> TBLPROPERTIES('es.resource' = 'hosix/test');
> 
> ```

I searched too much on google and the different problems in the forums, I found that elasticsearch supports the date with ISO 8601 format, so I inserted a line like this:

> insert into test values ('2018-04-08T11:03:21+00:00');

And I made a select query to check that everything is OK on hive :

![image](https://us1.discourse-cdn.com/elastic/original/3X/7/8/780116d061a0b830ff2d891f9fb31da7a2c3993b.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/d/8daaa057b595aa5bca696ea96e227a833434c4a4.png)

I created the index on Kibana and recognizes the date\_test field :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/0/902cab1b163c01e340eded76407fbf473f50cd23.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/9/a9a32b8906101efce9f22e2731b289481326e90e.png)

**but when want to do a visualization test on my data, there is no records :**

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/1/d12235eb80eba03221ec5a8bce0f851f1f2ac611.png)

please help me, I searched too much on the internet I can not find the solution yet and I don't know what to do 😥

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 9, 2018, 8:01am UTC](https://discuss.elastic.co/t/load-the-date-field-from-hive-to-elasticsearch-and-visualize-it-on-kibana/127209/2 "2018-04-09T08:01:15Z")

</div>

can you search in that index for this document? Does it exist? If so, can you paste the mapping of the index and the json fo the document here?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 7, 2018, 8:01am UTC](https://discuss.elastic.co/t/load-the-date-field-from-hive-to-elasticsearch-and-visualize-it-on-kibana/127209/3 "2018-05-07T08:01:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
