# Elaticsearch Hadoop HDFS Snopshot

**URL:** <https://discuss.elastic.co/t/elaticsearch-hadoop-hdfs-snopshot/97890>\
**Category:** Elasticsearch\
**Created:** [August 22, 2017, 10:37am UTC](https://discuss.elastic.co/t/elaticsearch-hadoop-hdfs-snopshot/97890 "2017-08-22T10:37:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samy\_Nathan](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Samy\_Nathan](https://discuss.elastic.co/u/Samy_Nathan)\
**Post date:** [August 22, 2017, 10:37am UTC](https://discuss.elastic.co/t/elaticsearch-hadoop-hdfs-snopshot/97890/1 "2017-08-22T10:37:09Z")

</div>

Hi,  
iam trying to elasticsearch index take backup (snopshot) using Hadoop HDFS respository  
but showing following errors:

elasticsearch version = 2.4.1  
Appache hadoop version=2.7.1

Steps1 : install hdfs Repo plugin  
bin/plugin --install elasticsearch/elasticsearch-repository-hdfs/2.0.0-hadoop2

step2 : start elasticseach server  
step3 : start the hadoop  
step 4 : create snopshot repository  
curl -XPOST '[http://localhost:9200/\_snapshot/hdfsrepository](http://localhost:9200/_snapshot/hdfsrepository)' -d'{  
"type": "hdfs",  
"settings": {  
"uri": "hdfs://localhost:9000/",  
"path": "hdfsbackup",  
"conf\_location":"/usr/local/hadoop/etc/hadoop/hdfs-site.xml,/usr/local/hadoop/etc/hadoop/core-site.xml",  
"compress": true  
}  
}'  
return response : {"acknowledged":true}

step5 : specific index name based on take snopshot

index name = my\_index  
curl -XPUT localhost:9200/\_snapshot/hdfsrepository -d '{  
"type": "hdfs",  
"indices": "my\_index",  
"ignore\_unavailable": "true",  
"include\_global\_state": false,  
"partial": true  
}'

return response ERROR

{  
"error": {  
"root\_cause": [  
{  
"type": "repository\_exception",  
"reason": "[hdfsrepository] failed to create repository"  
}  
],  
"type": "repository\_exception",  
"reason": "[hdfsrepository] failed to create repository",  
"caused\_by": {  
"type": "creation\_exception",  
"reason": "Guice creation errors:\n\n1) Error injecting constructor, java.lang.IllegalArgumentException: no 'path' defined for hdfs snapshot/restore\n at org.elasticsearch.repositories.hdfs.HdfsRepository.(Unknown Source)\n while locating org.elasticsearch.repositories.hdfs.HdfsRepository\n while locating org.elasticsearch.repositories.Repository\n\n1 error",  
"caused\_by": {  
"type": "illegal\_argument\_exception",  
"reason": "no 'path' defined for hdfs snapshot/restore"  
}  
}  
},  
"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:** [September 19, 2017, 10:37am UTC](https://discuss.elastic.co/t/elaticsearch-hadoop-hdfs-snopshot/97890/2 "2017-09-19T10:37:41Z")

</div>

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