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
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
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 ?
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", "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 ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.