# Unable to create hdfs repository for elastic snapshot creations

**URL:** <https://discuss.elastic.co/t/unable-to-create-hdfs-repository-for-elastic-snapshot-creations/192054>\
**Category:** Elasticsearch\
**Created:** [July 24, 2019, 2:17pm UTC](https://discuss.elastic.co/t/unable-to-create-hdfs-repository-for-elastic-snapshot-creations/192054 "2019-07-24T14:17:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raja\_augstin](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@raja\_augstin](https://discuss.elastic.co/u/raja_augstin)\
**Post date:** [July 24, 2019, 2:17pm UTC](https://discuss.elastic.co/t/unable-to-create-hdfs-repository-for-elastic-snapshot-creations/192054/1 "2019-07-24T14:17:18Z")

</div>

I wants to store the elastic index into hdfs. And I'm using following version  
elastic version: 5.6.3  
snapshot : 2.8.1  
when we use following command to create hdfs type repository we facing error. can someone help on this issues

```
> PUT _snapshot/my_hdfs_repository
> {
> "type": "hdfs",
> "settings": {
> "uri": "hdfs://xxxxxxxx:12345/",
> "path": "/dev/test/snapshot",
> "security.principal": "abc@TEST-xyv.COM"
> }
> }

```

we receive following error -  
`

> [{ "error" : { "root\_cause" : [{ "type" : "repository\_exception", "reason" : "[my\_hdfs\_repository] failed to create repository" } ], "type" : "repository\_exception", "reason" : "[my\_hdfs\_repository] failed to create repository", "caused\_by" : { "type" : "unchecked\_i\_o\_exception", "reason" : "Cannot create HDFS repository for uri [hdfs://yyyyyyy:12345/ "caused\_by" : { "type" : "i\_o\_exception", "reason" : "Failed on local exception: java.io.IOException: org.apache.h s : local host is: "xxxxxxxx.server.net/xx.yyyy.zz.qq"; destination host is "caused\_by" : { "type" : "i\_o\_exception", "reason" : " **org.apache.hadoop.ipc.RpcException** : RPC response exceeds m "caused\_by" : { "type" : "rpc\_exception", "reason" : "RPC response exceeds maximum data length" } } } } }, "status" : 500 }]

`

---

<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:** [August 21, 2019, 2:17pm UTC](https://discuss.elastic.co/t/unable-to-create-hdfs-repository-for-elastic-snapshot-creations/192054/2 "2019-08-21T14:17:19Z")

</div>

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