# Snapshot HDFS files encrypted?

**URL:** <https://discuss.elastic.co/t/snapshot-hdfs-files-encrypted/41319>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [February 9, 2016, 9:42pm UTC](https://discuss.elastic.co/t/snapshot-hdfs-files-encrypted/41319 "2016-02-09T21:42:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arani](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@arani](https://discuss.elastic.co/u/arani)\
**Post date:** [February 9, 2016, 9:42pm UTC](https://discuss.elastic.co/t/snapshot-hdfs-files-encrypted/41319/1 "2016-02-09T21:42:48Z")

</div>

Hi - Are the files created in HDFS as snapshot of a Elasticsearch index encrypted by default? Upon running the 'hadoop fs -text' command against one of the index snapshot I get only garbage printed on screen. It'd be great if someone can clarify.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 9, 2016, 10:10pm UTC](https://discuss.elastic.co/t/snapshot-hdfs-files-encrypted/41319/2 "2016-02-09T22:10:44Z")

</div>

The snapshot process backs up Lucene segments, which are binary files, so it is perfectly natural that you can not read them as text files.

---

<div class="post-metadata">

**Author:** ![arani](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@arani](https://discuss.elastic.co/u/arani)\
**Post date:** [February 9, 2016, 10:18pm UTC](https://discuss.elastic.co/t/snapshot-hdfs-files-encrypted/41319/3 "2016-02-09T22:18:18Z")

</div>

Thanks Christian. What exact format are the stored in? Also, is there any library to read and process them in a map reduce program?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 9, 2016, 10:24pm UTC](https://discuss.elastic.co/t/snapshot-hdfs-files-encrypted/41319/4 "2016-02-09T22:24:39Z")

</div>

Not that I am aware of. The normal was to interact with data in Elasticsearch from Hadoop is through the [ES-Hadoop connector](https://www.elastic.co/guide/en/elasticsearch/hadoop/current/index.html), not via backed up snapshots.

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [February 21, 2016, 6:27pm UTC](https://discuss.elastic.co/t/snapshot-hdfs-files-encrypted/41319/5 "2016-02-21T18:27:32Z")

</div>

Snapshots are internal to ES and are not meant to be modified or read by outside tools. If you want to interact with the data, one should work through it through ES, and in case of Hadoop ES-Hadoop is the way to go.

Cheers,

---

<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:** [July 6, 2017, 1:26pm UTC](https://discuss.elastic.co/t/snapshot-hdfs-files-encrypted/41319/6 "2017-07-06T13:26:09Z")

</div>


