# Unable to create hdfs repository for elastic snapshot creation

**URL:** <https://discuss.elastic.co/t/unable-to-create-hdfs-repository-for-elastic-snapshot-creation/190992>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [July 17, 2019, 12:58pm UTC](https://discuss.elastic.co/t/unable-to-create-hdfs-repository-for-elastic-snapshot-creation/190992 "2019-07-17T12:58:00Z")\
**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 17, 2019, 12:58pm UTC](https://discuss.elastic.co/t/unable-to-create-hdfs-repository-for-elastic-snapshot-creation/190992/1 "2019-07-17T12:58:00Z")

</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](mailto: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 14, 2019, 12:58pm UTC](https://discuss.elastic.co/t/unable-to-create-hdfs-repository-for-elastic-snapshot-creation/190992/2 "2019-08-14T12:58:02Z")

</div>

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