# How To create a table in hive

**URL:** <https://discuss.elastic.co/t/how-to-create-a-table-in-hive/257310>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [December 2, 2020, 6:59am UTC](https://discuss.elastic.co/t/how-to-create-a-table-in-hive/257310 "2020-12-02T06:59:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![irfangk1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irfangk1/32/79765_2.png) [@irfangk1](https://discuss.elastic.co/u/irfangk1)\
**Post date:** [December 2, 2020, 6:59am UTC](https://discuss.elastic.co/t/how-to-create-a-table-in-hive/257310/1 "2020-12-02T06:59:42Z")

</div>

Hi,  
I am trying to create a ext. table in hive as mention is Elsatic doc. i need to know what are the below properties are

STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'  
TBLPROPERTIES('es.resource' = 'radio/artists');

& Need to know the below cmd details

INSERT OVERWRITE TABLE artists  
SELECT NULL, s.name, named\_struct('url', s.url, 'picture', s.picture)  
FROM source s;

---

<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:** [December 30, 2020, 6:59am UTC](https://discuss.elastic.co/t/how-to-create-a-table-in-hive/257310/2 "2020-12-30T06:59:50Z")

</div>

Closed on December 30, 2020, 6:59am UTC

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