# Write elasticsearch's data directly on HDFS rather than on local filesystem

**URL:** https://discuss.elastic.co/t/write-elasticsearchs-data-directly-on-hdfs-rather-than-on-local-filesystem/220640
**Category:** Elasticsearch
**Created:** [February 24, 2020, 12:01pm UTC](https://discuss.elastic.co/t/write-elasticsearchs-data-directly-on-hdfs-rather-than-on-local-filesystem/220640 "2020-02-24T12:01:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hits.elastic](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@hits.elastic](https://discuss.elastic.co/u/hits.elastic)
#### Post date: [February 24, 2020, 12:01pm UTC](https://discuss.elastic.co/t/write-elasticsearchs-data-directly-on-hdfs-rather-than-on-local-filesystem/220640/1 "2020-02-24T12:01:15Z")

</div>

Hi,

I have an elasticsearch cluster running on kubernetes. Currently elasticsearch writing indices data on local filesystem (path: /usr/share/elasticsearch/data) as shown below.

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/1/315f93fc3c6eb117dbba4bdeab632c72f3151f2f.png)  
Since elasticsearch is producing a very large amount of data, So I want to write this data directly on hadoop filesystem rather than on local filesystem.

Is there any simplest way to do this ??

**Note:** I am not telling about Snapshot/Restore which is mentioned here [https://www.elastic.co/guide/en/elasticsearch/reference/7.6/snapshot-restore.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/snapshot-restore.html)

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [February 24, 2020, 1:02pm UTC](https://discuss.elastic.co/t/write-elasticsearchs-data-directly-on-hdfs-rather-than-on-local-filesystem/220640/2 "2020-02-24T13:02:58Z")

</div>

Data should always be on a local filesystem/volumes in order to be accessed as fast and efficient as possible.

You could use HDFS for something like snapshots, but not the data currently in use.

---

<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: [March 23, 2020, 1:03pm UTC](https://discuss.elastic.co/t/write-elasticsearchs-data-directly-on-hdfs-rather-than-on-local-filesystem/220640/3 "2020-03-23T13:03:06Z")

</div>

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