# Getting IOException when querying

**URL:** <https://community.dremio.com/t/getting-ioexception-when-querying/7364>\
**Category:** Uncategorized\
**Created:** [April 29, 2021, 12:09pm UTC](https://community.dremio.com/t/getting-ioexception-when-querying/7364 "2021-04-29T12:09:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayush.goyal](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@Ayush.goyal](https://community.dremio.com/u/Ayush.goyal)\
**Post date:** [April 29, 2021, 12:09pm UTC](https://community.dremio.com/t/getting-ioexception-when-querying/7364/1 "2021-04-29T12:09:46Z")

</div>

Hi,

I have installed Dremio through kubenetes. I have currently 1 master, 3 executor and 3 zk  
However, When I am querying data in s3 it is giving IOEception.

```
IOException: Mkdirs failed to create /opt/dremio/data/pdfs/results/1f756008-ec91-ab87-94d0-f8d064c1a500.Show more

```

After further inspection, I found out that 2 of the executors dremio-executor-0 and dremio-executor-1 have these directories created and have some directories with query ids but the dremio-executor-2 have directory structure similar to master and have no directories like that.

And everytime I am querying data on s3 giving same error . So might be all these queries executing on executor-2. Unlike in Mysql data source in that case some times those are failing with same error and sometimes those are successful.

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [April 30, 2021, 6:43am UTC](https://community.dremio.com/t/getting-ioexception-when-querying/7364/2 "2021-04-30T06:43:52Z")

</div>

@Ayush.goyal When you query via a JDBC tool like DBeaver or DBVisualizer, results are not written. When you run a query that does not require the 3rd executor (due to parallelism) it seems like it works. Have you found out the reason on why Dremio is unable to create the results folder on dremio-executor-2?

---

<div class="post-metadata">

**Author:** ![Ayush.goyal](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@Ayush.goyal](https://community.dremio.com/u/Ayush.goyal)\
**Post date:** [April 30, 2021, 12:15pm UTC](https://community.dremio.com/t/getting-ioexception-when-querying/7364/3 "2021-04-30T12:15:23Z")

</div>

Hi balaji,

I am able to resolve this issue. When I deployed the dremio dremio-executor-2 had different directory structure like master once i forcefully killed it . It respawn with correct configuration.
