# Dynamic resource writes does not work

**URL:** <https://discuss.elastic.co/t/dynamic-resource-writes-does-not-work/109314>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [November 28, 2017, 6:27am UTC](https://discuss.elastic.co/t/dynamic-resource-writes-does-not-work/109314 "2017-11-28T06:27:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lea4n](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@lea4n](https://discuss.elastic.co/u/lea4n)\
**Post date:** [November 28, 2017, 6:27am UTC](https://discuss.elastic.co/t/dynamic-resource-writes-does-not-work/109314/1 "2017-11-28T06:27:32Z")

</div>

We use es-hadoop in our storm topo, and get the index name from the data being streamed to Elasticsearch according to the doc.  
Unfortunately, It always report an error, the variable does not exist.  
My code is like

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

and the error is like:

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

I am sure I had send one json object to the 'EsBolt' and with a variable 'instance\_id'.

Help me please.

---

<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:** [November 28, 2017, 5:40pm UTC](https://discuss.elastic.co/t/dynamic-resource-writes-does-not-work/109314/2 "2017-11-28T17:40:35Z")

</div>

Can you include the full stack trace you are seeing?

---

<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 26, 2017, 5:40pm UTC](https://discuss.elastic.co/t/dynamic-resource-writes-does-not-work/109314/3 "2017-12-26T17:40:52Z")

</div>

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