# S3-like storage for Distributed Storage

**URL:** <https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212>\
**Category:** Uncategorized\
**Created:** [May 24, 2022, 5:59pm UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212 "2022-05-24T17:59:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramworks](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/ramworks/32/2058_2.png) [@ramworks](https://community.dremio.com/u/ramworks)\
**Post date:** [May 24, 2022, 5:59pm UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/1 "2022-05-24T17:59:50Z")

</div>

Hi,

I’m following the documentation to stand up Dremio in an on-premise k8s kluster, using the [helm chart dremio\_v2](https://github.com/dremio/dremio-cloud-tools/tree/master/charts/dremio_v2). Since Dremio version 21 doesn’t support “local” as an alternative for distributed storage, I’m going with S3 since we have that available as an on-premise offering through StorageGrid. The settings are the same as when using Minio.

I’ve set up a bucket per the documentation and named it aptly ‘dremio’.

However, I’m getting the following error `UnknownHostException: dremio.<redacted>.com`.

To me it looks like Dremio is going for a domain-style access pattern which neither Minio nor StorageGrid supports. I was under the impression that S3-like interfaces was supported for distributed storage, since there is a special section for it [in the documentation](https://docs.dremio.com/software/deployment/dist-store-config/#configuring-dremio-for-minio).

I’ve added all **core-site.xml** properties in the key `distStorage.aws.extraProperties`

Has anyone had any luck with using either Minio or StorageGrid or any other S3-like interfaces as a distributed storage? Or is it just the K8s version of Dremio that doesn’t fully support this?

Kind regards,  
Jesper

---

<div class="post-metadata">

**Author:** ![lenoyjacob](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/lenoyjacob/32/3474_2.png) [@lenoyjacob](https://community.dremio.com/u/lenoyjacob)\
**Post date:** [May 26, 2022, 7:24am UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/2 "2022-05-26T07:24:37Z")

</div>

@ramworks both StorageGrid and MinIO should work fine with Dremio. Last I tested was with v20.0. Common mistakes are putting `http(s)://` prefix for the endpoint or missing out to put the port.

Here’s a sample values.yaml that work for me (only relevant sections):

```auto
#... Line #287

distStorage:
  type: "aws"

#... Line #344

  aws:
    bucketName: "dremio"
    path: "/"
    authentication: "accessKeySecret" 
    credentials:
      accessKey: "ACCESS_KEY"
      secret: "SECRET_KEY"

    extraProperties: |
      <property>
        <name>fs.s3a.endpoint</name>
        <value>175.1.2.3:9000</value>
      </property>
      <property>
        <name>fs.s3a.path.style.access</name>
        <value>true</value>
      </property>
      <property>
        <name>dremio.s3.compat</name>
        <value>true</value>
      </property>
      <property>
        <name>fs.s3a.connection.ssl.enabled</name>
        <value>false</value>
      </property>

```

---

<div class="post-metadata">

**Author:** ![ramworks](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/ramworks/32/2058_2.png) [@ramworks](https://community.dremio.com/u/ramworks)\
**Post date:** [May 30, 2022, 9:05am UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/3 "2022-05-30T09:05:27Z")

</div>

@lenoyjacob Our vaules.yaml files look identical in that regards. Only difference is that we have https for our StorageGrid endpoint. Here’s mine, for reference:

```auto
distStorage:
  type: "aws"
  aws:
    bucketName: "dremio"
    path: "/"
    authentication: "accessKeySecret"
    credentials:
      accessKey: "ACCESS_KEY"
      secret: "SECRET_KEY"
    extraProperties: |
      <property>
        <name>fs.s3a.endpoint</name>
        <value>storagegrid.endpoint.company.com</value>
      </property>
      <property>
        <name>fs.s3a.path.style.access</name>
        <value>true</value>
      </property>
      <property>
        <name>dremio.s3.compat</name>
        <value>true</value>
      </property>
      <property>
        <name>fs.s3a.connection.ssl.enabled</name>
        <value>true</value>
      </property>

```

The annoying thing is, I got it to work (yay!) when having the following image:

```auto
image: dremio/dremio-oss
imageTag: 20.1.0

```

But not any later tags/versions. Later versions always result in the error stated in the OP. Probably should file this as a bug somewhere. Anyhow, thanks for your help in confirming that at least my settings were correct!

Cheers!

---

<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:** [June 2, 2022, 4:28am UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/4 "2022-06-02T04:28:50Z")

</div>

@ramworks Are you blocked on your upgrade to v21.x due to this?

---

<div class="post-metadata">

**Author:** ![ramworks](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/ramworks/32/2058_2.png) [@ramworks](https://community.dremio.com/u/ramworks)\
**Post date:** [June 2, 2022, 4:45am UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/5 "2022-06-02T04:45:29Z")

</div>

@balaji.ramaswamy Yes, unfortunately. Seems that neither versions of 21.x respects the additional properties fully.

---

<div class="post-metadata">

**Author:** ![ramworks](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/ramworks/32/2058_2.png) [@ramworks](https://community.dremio.com/u/ramworks)\
**Post date:** [July 4, 2022, 7:43am UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/6 "2022-07-04T07:43:03Z")

</div>

I saw that version 22.0 popped up on [hub.docker.com](https://hub.docker.com/r/dremio/dremio-oss/tags) a couple of days ago. Any info if distributed storage now respects path style access to enable Minio or StorageGrid?

---

<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:** [July 4, 2022, 8:17pm UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/7 "2022-07-04T20:17:49Z")

</div>

@ramworks Is your question if Dremio supports Minio? Can you please elaborate “path style access”?

---

<div class="post-metadata">

**Author:** ![ramworks](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/ramworks/32/2058_2.png) [@ramworks](https://community.dremio.com/u/ramworks)\
**Post date:** [July 4, 2022, 9:04pm UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/8 "2022-07-04T21:04:35Z")

</div>

Ok, @balaji.ramaswamy . Feels like we lost context here. I created this thread about a month ago since I wasn’t able to specify a S3-like interface as a distributed storage in a kubernetes installation.

It turned out that neither versions of 21 respected the additional properties [outlined in Dremios documentation](https://docs.dremio.com/software/deployment/dist-store-config/#configuring-dremio-for-minio) in regards to setting up an S3-like interface as a Distributed Storage. Only version 20 did.

After my findings you asked me if this effectively blocked me from upgrading to version 21, to which I responded a heartfelt Yes.

So now when version 22 is out I am asking if this issue might have been resolved.

Kind regards,  
Jesper

---

<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:** [July 6, 2022, 2:53am UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/9 "2022-07-06T02:53:51Z")

</div>

@ramworks Apologies, I should have gone through the post again. I have again pinged the right person for his availability, once I do, will update here

---

<div class="post-metadata">

**Author:** ![ramworks](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/ramworks/32/2058_2.png) [@ramworks](https://community.dremio.com/u/ramworks)\
**Post date:** [July 20, 2022, 1:27pm UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/10 "2022-07-20T13:27:41Z")

</div>

Hi again,

Unfortunately, the issue with distributed storage settings not respecting `fs.s3s.endpoint` and `fs.s3a.path.style.access` [outlined in the documentation](https://docs.dremio.com/software/deployment/dist-store-config/#configuring-dremio-for-minio) is still there in version 22.0.0.

I am getting the following error when querying a dataset in version 22.0.0. I’ve set `dremio` as the bucket for distributed storage and made sure that it is created.

Edit: It’s actually when querying a physical dataset that is comprised of several files with identical schemas residing in the same catalog, i.e. the catalog is formatted as a dataset:

```auto
com.dremio.common.exceptions.UserException: UnknownHostException: dremio.<redacted hostname>.com
	at com.dremio.common.exceptions.UserException$Builder.build(UserException.java:890)
	at com.dremio.service.jobs.JobResultsStore.loadJobData(JobResultsStore.java:152)
	at com.dremio.service.jobs.JobResultsStore$LateJobLoader.load(JobResultsStore.java:331)
	at com.dremio.service.jobs.JobDataImpl.range(JobDataImpl.java:50)
	at com.dremio.service.jobs.LocalJobsService.getJobData(LocalJobsService.java:1136)
	at com.dremio.service.jobs.JobsFlightProducer.getStream(JobsFlightProducer.java:78)
	at com.dremio.dac.service.flight.CoordinatorFlightProducer.getStream(CoordinatorFlightProducer.java:63)
	at org.apache.arrow.flight.FlightService.doGetCustom(FlightService.java:111)
	at org.apache.arrow.flight.FlightBindingService$DoGetMethod.invoke(FlightBindingService.java:144)
	at org.apache.arrow.flight.FlightBindingService$DoGetMethod.invoke(FlightBindingService.java:134)
	at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:182)
	at io.grpc.PartialForwardingServerCallListener.onHalfClose(PartialForwardingServerCallListener.java:35)
	at io.grpc.ForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:23)
	at io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:40)
	at io.grpc.Contexts$ContextualizedServerCallListener.onHalfClose(Contexts.java:86)
	at io.grpc.PartialForwardingServerCallListener.onHalfClose(PartialForwardingServerCallListener.java:35)
	at io.grpc.ForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:23)
	at io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:40)
	at io.opentracing.contrib.grpc.TracingServerInterceptor$2.onHalfClose(TracingServerInterceptor.java:231)
	at io.grpc.PartialForwardingServerCallListener.onHalfClose(PartialForwardingServerCallListener.java:35)
	at io.grpc.ForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:23)
	at io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:40)
	at io.grpc.util.TransmitStatusRuntimeExceptionInterceptor$1.onHalfClose(TransmitStatusRuntimeExceptionInterceptor.java:74)
	at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:340)
	at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:866)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)

```

Regards,  
Jesper

---

<div class="post-metadata">

**Author:** ![humanSupafly](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@humanSupafly](https://community.dremio.com/u/humanSupafly)\
**Post date:** [December 19, 2023, 9:07pm UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/11 "2023-12-19T21:07:11Z")

</div>

@ramworks Did you find a solution to this problem?  
I’m installing on K8s Dremio 24.1 with same settings as you. When fs.s3a.connection.ssl.enabled is set to ‘true’ the installation fails. Set to ‘false’ it succeeds

---

<div class="post-metadata">

**Author:** ![ramworks](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/ramworks/32/2058_2.png) [@ramworks](https://community.dremio.com/u/ramworks)\
**Post date:** [December 20, 2023, 10:41am UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/12 "2023-12-20T10:41:31Z")

</div>

@humanSupafly Well in the end I found a solution to my business problem 😏

I was tasked to facilitate queries on a dataset comprised of \> 50.000 parquet files. Roughly 4 billion records. To get any kind of reasonable speed out of Dremio, this data first had to have it’s format specified and then in a timely manner converted into a reflection.

I stared at the problem for a few days after running into the issues outlined in this thread and realized that playing Lake House was just a very weird way of for unknown reasons avoiding an MPP database. So I installed [ClickHouse](https://clickhouse.com/clickhouse) on an identical set of hardware and ingested all the data into a table. Both query speeds and storage requirements were noticeably improved.

Since the team behind ClickHouse also ships an official python library, a Kafka Connect client, a dbt adapter, ODBC and JDBC-drivers and comes with a very easy to use REST API all integration-bits that we hadn’t really figured out with Dremio yet also kinda resolved themselves.

So for us the choice was obvious. We didn’t need a Lake House. We needed the best OSS columnar database on the market.

Kind regards,  
Jesper Bagge

---

<div class="post-metadata">

**Author:** ![humanSupafly](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@humanSupafly](https://community.dremio.com/u/humanSupafly)\
**Post date:** [December 21, 2023, 12:22pm UTC](https://community.dremio.com/t/s3-like-storage-for-distributed-storage/9212/13 "2023-12-21T12:22:51Z")

</div>

Oke, thanks for the answer @ramworks

I managed to configure ssl enabled distributed storage with our onprem s3. in our case the problem was the certificate and policy settings on the s3 endpoints.
