# Query Elasticsearch with Readonlyrest plugin from Hive

**URL:** https://discuss.elastic.co/t/query-elasticsearch-with-readonlyrest-plugin-from-hive/117383
**Category:** Elasticsearch
**Tags:** es-hadoop
**Created:** [January 28, 2018, 11:37pm UTC](https://discuss.elastic.co/t/query-elasticsearch-with-readonlyrest-plugin-from-hive/117383 "2018-01-28T23:37:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dzyubanv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyubanv/32/24110_2.png) [@dzyubanv](https://discuss.elastic.co/u/dzyubanv)
#### Post date: [January 28, 2018, 11:37pm UTC](https://discuss.elastic.co/t/query-elasticsearch-with-readonlyrest-plugin-from-hive/117383/1 "2018-01-28T23:37:48Z")

</div>

I'm trying to configure and run Elasticsearch-5.6.3 with Readonlyrest plugin and Hadoop/Hive (es-hadoop-6.0 connector ) on RHEL and on different servers. Hadoop 2.7.3.2.6.3.0-235, Hive 1.2.1.100.2.6.3.0-235.  
The readonlyrest plugin on Elasticserch side is set of jar files inside $ES\_HOME/plugins/readonlyrest folder and readonlyrest.yml file in $ES\_HOME/plugins/config folder.  
I **successfully tested** querying Elasticsearch using hive external table, **when Readonlyrest plugin disabled**.  
When I **enabled Readonlyrest plugin** , restarted Elasticsearch, then **execution** of "create external table ..." **failed**.  
**Do I need to add some configuration property/variable, like es.xyz or anything else, to Hive External Table definition or to the current Hive session in order to let Hive table or/and es-hadoop connector know that Elasticsearch is running with enabled Readonlyrest plugin (or any other enabled plugin) ?**  
Thanks in advance.

---

<div class="post-metadata">

### Author: ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)
#### Post date: [January 29, 2018, 5:12am UTC](https://discuss.elastic.co/t/query-elasticsearch-with-readonlyrest-plugin-from-hive/117383/2 "2018-01-29T05:12:55Z")

</div>

Please avoid posting the same issue multiple times here. I understand that this forum does not have the same sort of response times as other forums on the site, but opening multiple threads for the same issue does not help. If you have more information on your issue, please bump/update the original post.

---

<div class="post-metadata">

### Author: ![dzyubanv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyubanv/32/24110_2.png) [@dzyubanv](https://discuss.elastic.co/u/dzyubanv)
#### Post date: [January 30, 2018, 1:54am UTC](https://discuss.elastic.co/t/query-elasticsearch-with-readonlyrest-plugin-from-hive/117383/3 "2018-01-30T01:54:47Z")

</div>

I'm apology for the inconvenience James. Feel free to remove this post and I will update the original one. Thank you for your time, patience, support and help.

---

<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: [February 27, 2018, 1:54am UTC](https://discuss.elastic.co/t/query-elasticsearch-with-readonlyrest-plugin-from-hive/117383/4 "2018-02-27T01:54:52Z")

</div>

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