# Server IPC version 9 cannot communicate with client version 4

**URL:** <https://discuss.elastic.co/t/server-ipc-version-9-cannot-communicate-with-client-version-4/37296>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [December 16, 2015, 2:36am UTC](https://discuss.elastic.co/t/server-ipc-version-9-cannot-communicate-with-client-version-4/37296 "2015-12-16T02:36:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discuss.elastic.co/u/Benny)\
**Post date:** [December 16, 2015, 2:36am UTC](https://discuss.elastic.co/t/server-ipc-version-9-cannot-communicate-with-client-version-4/37296/1 "2015-12-16T02:36:35Z")

</div>

Hi, I'm elasticsearch beginner and trying snapshot to HDFS but repository was not created on CentOS6.7.  
env : Hadoop2.6.2, ES 1.7.2, OpenJDK 1.7\_80

1. bin/plugin install elasticsearch/elasticsearch-repository-hdfs/2.1.2 on es
2. download and copy elasticsearch-hadoop-2.2.0-beta1.jar and hadoop-yarn-client-2.6.2.jar at $ES\_HOME/lib
3. edit elasticsearch.yml  
repositories.hdfs.uri: "hdfs://localhost:9000/"  
repositories.hdfs.path: "/tmp/snapshot"  
repositories.hdfs.load\_defaults: "true"  
repositories.hdfs.conf\_location: ["/home/hadoop/hadoop-2.6.2/etc/hadoop/core-site.xml","/home/hadoop/hadoop-2.6.2/etc/hadoop/hdfs-site.xml"]  
repositories.hdfs.concurrent\_streams: 5  
repositories.hdfs.compress: "true"  
repositories.hdfs.chunk\_size: "10mb"
4. start elasticsearch and run curl command:  
curl -XPOST '[http://localhost:9000/\_snapshot/hdfs\_repo0](http://localhost:9000/_snapshot/hdfs_repo0)' -d '{ "type":"hdfs", "settings":{ "uri":"hdfs://localhost:9000/", "path":"/tmp/snapshot" } }'
5. return error: Server IPC version 9 cannot communicate with client version 4

I search this error on google but cannot solve. I need help. Thanks.

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discuss.elastic.co/u/Benny)\
**Post date:** [December 16, 2015, 8:41am UTC](https://discuss.elastic.co/t/server-ipc-version-9-cannot-communicate-with-client-version-4/37296/2 "2015-12-16T08:41:41Z")

</div>

Is the version of es 1.7.2 too old for repository-hdfs-2.1.2.jar or elasticsearch-hadoop-2.2.0-beta1.jar?  
Could anyone give a version matrix between es, repository-hdfs, elasticsearch-hadoop and hadoop-yarn-client for es=1.7.2, 2.0.1 and 2.1.0?

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discuss.elastic.co/u/Benny)\
**Post date:** [December 18, 2015, 5:57am UTC](https://discuss.elastic.co/t/server-ipc-version-9-cannot-communicate-with-client-version-4/37296/3 "2015-12-18T05:57:26Z")

</div>

I've solved the issue. The hadoop related jars in repository-hdfs-2.1.2 are too old for hadoop 2.6.  
Copying the below jars in hadoop 2.6 into repository-hdfs-2.1.2 can solve.  
commons-httpclient-3.1.jar  
commons-io-2.4.jar  
commons-lang-2.6.jar  
commons-logging-1.1.3.jar  
commons-net-3.1.jar  
guava-11.0.2.jar  
hadoop-common-2.6.2.jar  
hadoop-auth-2.6.2.jar  
slf4j-api-1.7.5.jar  
hadoop-hdfs-2.6.2.jar  
commons-cli-1.2.jar  
protobuf-java-2.5.0.jar  
htrace-core-3.0.4.jar

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [December 18, 2015, 1:15pm UTC](https://discuss.elastic.co/t/server-ipc-version-9-cannot-communicate-with-client-version-4/37296/4 "2015-12-18T13:15:12Z")

</div>

You properly identified the issue - there are a variety of hadoop versions especially when considering the various distros and versions. Repository-hdfs currently sits on Hadoop 2.4.1 but in master at least, it moved to Hadoop 2.7.1

---

<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:** [July 6, 2017, 1:26pm UTC](https://discuss.elastic.co/t/server-ipc-version-9-cannot-communicate-with-client-version-4/37296/5 "2017-07-06T13:26:50Z")

</div>


