# Dremio to read encrypted parquet files

**URL:** <https://community.dremio.com/t/dremio-to-read-encrypted-parquet-files/407>\
**Category:** Uncategorized\
**Created:** [November 1, 2017, 6:06pm UTC](https://community.dremio.com/t/dremio-to-read-encrypted-parquet-files/407 "2017-11-01T18:06:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Saxena](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@Ankit\_Saxena](https://community.dremio.com/u/Ankit_Saxena)\
**Post date:** [November 1, 2017, 6:06pm UTC](https://community.dremio.com/t/dremio-to-read-encrypted-parquet-files/407/1 "2017-11-01T18:06:36Z")

</div>

Hi,

We have a use-case to read encrypted parquet files from HDFS for which we have custom-jar file to decrypt them.

We have put this custom-jar file in 3rdparty folder and wanted to know how it can be put to use

Regards  
Ankit Saxena

---

<div class="post-metadata">

**Author:** ![yufeldman](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@yufeldman](https://community.dremio.com/u/yufeldman)\
**Post date:** [November 1, 2017, 6:37pm UTC](https://community.dremio.com/t/dremio-to-read-encrypted-parquet-files/407/2 "2017-11-01T18:37:18Z")

</div>

How do you deal with it in your existing environment - do you have customized ParquetReader or wrapped FSInputStream to decrypt data first?

---

<div class="post-metadata">

**Author:** ![Ankit\_Saxena](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@Ankit\_Saxena](https://community.dremio.com/u/Ankit_Saxena)\
**Post date:** [November 2, 2017, 3:14pm UTC](https://community.dremio.com/t/dremio-to-read-encrypted-parquet-files/407/3 "2017-11-02T15:14:29Z")

</div>

Hi yufeldman,

In existing environment we are executing as shown below command to connect to source hdfs.

hdfs dfs -libjars /path/to/custom.jar -ls foundry://@/datasets/

We unable to try the same approach in dremio.

---

<div class="post-metadata">

**Author:** ![yufeldman](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@yufeldman](https://community.dremio.com/u/yufeldman)\
**Post date:** [November 2, 2017, 4:22pm UTC](https://community.dremio.com/t/dremio-to-read-encrypted-parquet-files/407/4 "2017-11-02T16:22:29Z")

</div>

It is great you are providing custom jar to do “hadoop dfs -ls”. Looks like you have your own FileSystem implementation (probably wrapper on top of hdfs) with scheme “foundry”, so I assume you have implementation for your FileSystem and subsequently FSInput/OutputStreams that do decoding/encoding. Is this a correct assumption?

---

<div class="post-metadata">

**Author:** ![Ankit\_Saxena](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@Ankit\_Saxena](https://community.dremio.com/u/Ankit_Saxena)\
**Post date:** [November 2, 2017, 4:32pm UTC](https://community.dremio.com/t/dremio-to-read-encrypted-parquet-files/407/5 "2017-11-02T16:32:52Z")

</div>

@yufeldman , yes you got that right.

How can dremio access this foundry file system?

Regards  
Ankit S

---

<div class="post-metadata">

**Author:** ![yufeldman](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@yufeldman](https://community.dremio.com/u/yufeldman)\
**Post date:** [November 2, 2017, 4:48pm UTC](https://community.dremio.com/t/dremio-to-read-encrypted-parquet-files/407/6 "2017-11-02T16:48:43Z")

</div>

Unfortunately dremio currently does not have ability to have FS based sources other than HDFS, MaprFS, LocalFS and S3.  
What you supposedly could try if you really use only your FS for all your needs is to modify core-site.xml (put it under dremio conf dir) and specify your (foundry) FileSystem’s implementation for “hdfs” scheme. It is hacky way of doing it and it limits you to only usage of “foundry” FS. Along with it you of course need your jar(s) in 3rdparty directory.
