# Hive to Elasticsearch index creation failing with dynamic template

**URL:** <https://discuss.elastic.co/t/hive-to-elasticsearch-index-creation-failing-with-dynamic-template/314106>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [September 10, 2022, 8:25am UTC](https://discuss.elastic.co/t/hive-to-elasticsearch-index-creation-failing-with-dynamic-template/314106 "2022-09-10T08:25:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivakumar\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sivakumar_m/32/110713_2.png) [@Sivakumar\_M](https://discuss.elastic.co/u/Sivakumar_M)\
**Post date:** [September 10, 2022, 8:25am UTC](https://discuss.elastic.co/t/hive-to-elasticsearch-index-creation-failing-with-dynamic-template/314106/1 "2022-09-10T08:25:15Z")

</div>

I have a hive table connected to elasticsearch. Able to create index when I run insert query without an Elasticsearch template, but it is failing when I run with having a template in elastic first and then I run insert query.

> <https://stackoverflow.com/questions/73669797/hive-to-elasticsearch-index-creation-failing-with-dynamic-template>

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [September 12, 2022, 1:27pm UTC](https://discuss.elastic.co/t/hive-to-elasticsearch-index-creation-failing-with-dynamic-template/314106/2 "2022-09-12T13:27:26Z")

</div>

Hi @Sivakumar_M. Can you post more of your es-hadoop logs (enabling [logging](https://www.elastic.co/guide/en/elasticsearch/hadoop/current/logging.html) might help)? It's probably also worth checking your Elasticsearch logs. My guess is that there is something wrong with the template and it is just being handled poorly by es-hadoop.

---

<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:** [October 10, 2022, 1:28pm UTC](https://discuss.elastic.co/t/hive-to-elasticsearch-index-creation-failing-with-dynamic-template/314106/3 "2022-10-10T13:28:17Z")

</div>

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