# Wrong version of elasticsearch release

**URL:** <https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135>\
**Category:** Elasticsearch\
**Created:** [January 29, 2017, 4:54pm UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135 "2017-01-29T16:54:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Post date:** [January 29, 2017, 4:54pm UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/1 "2017-01-29T16:54:52Z")

</div>

Hi,  
Im new to elasticSearch but encountered a weird problem (in my opinion).

I download the ES from the website, the version is 5.1.2;  
when i run it via the elasticsearch.bat it comes up and when i try to access it it shows me  
"  
{  
"status" : 200,  
"name" : "Alchemy",  
"cluster\_name" : "elasticsearch",  
"version" : {  
**"number" : "1.5.2",**  
"build\_hash" : "62ff9868b4c8a0c45860bebb259e21980778ab1c",  
"build\_timestamp" : "2015-04-27T09:21:06Z",  
"build\_snapshot" : false,  
"lucene\_version" : "4.10.4"  
},  
"tagline" : "You Know, for Search"  
}  
"  
notice the version is "1.5.2"  
looks like a typo in the version ?

now when i try to access kibana it tells me this error  
"This version of Kibana requires Elasticsearch v5.1.2 on all nodes. I found the following incompatible nodes in your cluster: v1.5.2"

I installed the ES last week and it worked well with kibana. I wrote a small java example to insert a new index to the ES.  
after i tried to run it, this the problem appeared ( im not sure if its connected to the problem but last week i could see a node on kibana)

I tried to change the cluster name and node name ( to make sure my index insert attemp wasnt the cause for the problem) and even after creating new cluster and node the problem still exsits

It is entirly possible that im way off the mark here so ill appreciate any help and suggestions

P.S - if someone has a comeplete example of a simple insert from a java code ill be glad to have it 😛

Thanks alot and have a nice day  
Sharon Gur.

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [January 29, 2017, 5:24pm UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/2 "2017-01-29T17:24:20Z")

</div>

The force is strong with this one. ES V1.x && Lucene V4.x would denote the wrong executable being used here.

Have a good look around our guides and I would recommend using our latest version (at the time of writing this) [https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indices.html](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indices.html)

---

<div class="post-metadata">

**Author:** ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Post date:** [January 29, 2017, 5:43pm UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/3 "2017-01-29T17:43:11Z")

</div>

> [@JKhondhu](#):
>
> Lucene

wait, I am using the latest ES version. so you are suggesting my Lucene Version is older? if ill download the latest one my ES wont say 1.5.2?

And ill try the guide you sent Thank you.

---

<div class="post-metadata">

**Author:** ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Post date:** [January 30, 2017, 8:12am UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/4 "2017-01-30T08:12:04Z")

</div>

I really dont get it.  
Checking the ES folder i can see the Lucene JARS in there are version 6.3.0. my ES is version 5.1.2.

Why when i go to "[http://localhost:9200](http://localhost:9200)"  
all the versions are incorrect?

"{  
"status" : 200,  
"name" : "Alchemy",  
"cluster\_name" : "elasticsearch",  
"version" : {  
**"number" : "1.5.2",**  
"build\_hash" : "62ff9868b4c8a0c45860bebb259e21980778ab1c",  
"build\_timestamp" : "2015-04-27T09:21:06Z",  
"build\_snapshot" : false,  
**"lucene\_version" : "4.10.4"**  
},  
"tagline" : "You Know, for Search"  
}"

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 30, 2017, 8:24am UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/5 "2017-01-30T08:24:03Z")

</div>

You probably have an old version of elasticsearch still running on that machine.

---

<div class="post-metadata">

**Author:** ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Post date:** [January 30, 2017, 8:26am UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/6 "2017-01-30T08:26:17Z")

</div>

How can i check it?

if someone along my local net has one running it will be his ES versions i receive?  
On my local computer i dont have any ES service running other than the ES 5.1.2 i am running

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 30, 2017, 8:29am UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/7 "2017-01-30T08:29:15Z")

</div>

If you have 2 versions running at the same time, the second usually bind to the next available http port, e.g. 9201. Can you try and see if you find anything on `http://localhost:9201` ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 30, 2017, 8:55am UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/8 "2017-01-30T08:55:52Z")

</div>

Depends on your OS (Linux/Win), but here we go:

```auto
ps -ef | grep elasticsearch

```

---

<div class="post-metadata">

**Author:** ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Post date:** [January 30, 2017, 9:02am UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/9 "2017-01-30T09:02:52Z")

</div>

Ok appearntly there was a process running, after killing it my cluster indeed was up and was updated.

Now i cant query my node as i see in the logs

"Received message from unsupported version: [2.0.0] minimal compatible version is: [5.0.0]"  
my code is "  
"Settings settings = Settings.settingsBuilder()  
.put("[cluster.name](http://cluster.name)", "sharongur").build();

```
		Client client = TransportClient.builder().settings(settings).build()
		      .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("127.0.0.1"), 9300));
		    
	IndexResponse response = client.prepareIndex("twitter", "tweet", "1")
	        .setSource("{name: blabla}"
	                  )
	        .get();
	
	// Index name
	String _index = response.getIndex();
	// Type name
	String _type = response.getType();
	// Document ID (generated or not)
	String _id = response.getId();
	// Version (if it's the first time you index this document, you will get: 1)
	long _version = response.getVersion();
	
			client.close();"

```

I checked similiar questions and the answers were that the transportclient is of version 2.0.0, how can i know what transport client i use? is it the version in the dependency in the pom.xml ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 30, 2017, 9:25am UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/10 "2017-01-30T09:25:32Z")

</div>

> [@sharongur](#):
>
> is it the version in the dependency in the pom.xml ?

Yes. Read [Maven Repository | Java Transport Client (deprecated) [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_maven_repository.html)

---

<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:** [February 27, 2017, 9:25am UTC](https://discuss.elastic.co/t/wrong-version-of-elasticsearch-release/73135/11 "2017-02-27T09:25:42Z")

</div>

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