# Issues with using repository-hdfs plug in for snapshot/restore operation

**URL:** <https://discuss.elastic.co/t/issues-with-using-repository-hdfs-plug-in-for-snapshot-restore-operation/18513>\
**Category:** Elasticsearch\
**Created:** [July 7, 2014, 9:42pm UTC](https://discuss.elastic.co/t/issues-with-using-repository-hdfs-plug-in-for-snapshot-restore-operation/18513 "2014-07-07T21:42:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Arun\_Prakash](https://discuss.elastic.co/u/Arun_Prakash)\
**Post date:** [October 1, 2014, 4:33am UTC](https://discuss.elastic.co/t/issues-with-using-repository-hdfs-plug-in-for-snapshot-restore-operation/18513/2 "2014-10-01T04:33:46Z")

</div>

Hi Jinyuan Zhou,

I am also having the same issue...

On Tuesday, July 8, 2014 3:12:04 AM UTC+5:30, Jinyuan Zhou wrote:

> I am using elasticsearch 1.2.1 and CDH 4.6. quick start vm. My ES server  
> is installed on the same vm.  
> I have one successful senario: I used light version and add the result and  
> command `hadoop classpath` to ES\_CLASSPATH
> 
> But I encoutered errros with the default version and hadoop2 version.  
> Here is the details of issues.  
> #1. I installed the plugin with this command  
> bin/plugin --install elasticsearch/elasticsearch-repository-hdfs/2.0.0  
> and I sent a PUT request below:  
> url: [http://localhost:9200/\_snapshot/hdfs\_repo](http://localhost:9200/_snapshot/hdfs_repo)  
> data :{  
> "type":"hdfs",  
> "settings":  
> {  
> "uri":"hdfs://localhost.localdomain:8020",  
> "path":"/user/cloudera/es\_snapshot"  
> }  
> }
> 
> I got this response
> 
> 1. "error": "RepositoryException[[hdfs\_repo] failed to create repository]; nested: CreationException[Guice creation errors:
> 
> 1. Error injecting constructor, org.elasticsearch.ElasticsearchGenerationException: Cannot create Hdfs file-system for uri [hdfs://localhost.localdomain:8020]  
> at org.elasticsearch.repositories.hdfs.HdfsRepository.(Unknown Source)  
> while locating org.elasticsearch.repositories.hdfs.HdfsRepository  
> while locating org.elasticsearch.repositories.Repository
> 
> 1 error]; nested: ElasticsearchGenerationException[Cannot create Hdfs file-system for uri [hdfs://localhost.localdomain:8020]]; nested: RemoteException[Server IPC version 7 cannot communicate with client version 4]; ",  
> 2. "status": 500
> 
> I noticed RemoteException: Server IPC version 7 cannot communicate with  
> client version 4
> 
> #2 Then I tried hadoop2 version,. So I installed plugin with this command  
> bin/plugin --install  
> elasticsearch/elasticsearch-repository-hdfs/2.0.0-hadoop2
> 
> I sent a PUT request as above, this time I even got more strange  
> exectiopon
> 
> NoClassDefFoundError[org/apache/commons/cli/ParseException]  
> Here is the response.
> 
> {  
> "error": "RepositoryException[[hdfs\_repo] failed to create repository]; nested: CreationException[Guice creation errors:
> 
> 1. Error injecting constructor, java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException  
> at org.elasticsearch.repositories.hdfs.HdfsRepository.(Unknown Source)  
> while locating org.elasticsearch.repositories.hdfs.HdfsRepository  
> while locating org.elasticsearch.repositories.Repository
> 
> 1 error]; nested: NoClassDefFoundError[org/apache/commons/cli/ParseException]; nested: ClassNotFoundException[org.apache.commons.cli.ParseException]; ",  
> "status": 500  
> }
> 
> I wonder if any one have simiar experiences. Note the failed cases are actaully  
> more realistic deplyoment choices. Because my hadoop cluster will less likely be on the same node  
> as my ES server.  
> Thanks,  
> Jack

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2295d772-931a-4662-a3ea-509fcbac89a7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2295d772-931a-4662-a3ea-509fcbac89a7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

_[View the full topic](https://discuss.elastic.co/t/issues-with-using-repository-hdfs-plug-in-for-snapshot-restore-operation/18513)._
