title: Sprint Boot and Elastic Search Connection issue
body: <p>I'm creating an application using Spring Boot and also Elastic-Search. Spring application part is working. And also when I start Elastic server, it's also running well. No issues at all. I can test it via POSTMAN and also CURL. Adding and also searching works well.</p>
  
  <p>But when I run the application, i'm getting following issues.
  This is the issue i'm getting in the IDE. (which means from my java application)</p>
  
  <blockquote>
    <p>org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{127.0.0.1:9300}]</p>
  </blockquote>
  
  <p>And this is the issue i'm getting from the Elasctic server on my local system.</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: Received message from unsupported version: [2.0.0] minimal compatible version is: [5.0.0]</p>
  </blockquote>
  
  <p>These are the libraries I'm using.</p>
  
  <ul>
  <li>Spring Boot 1.5.1.RELEASE</li>
  <li>Spring Boot Starter Data Elasticsearch 1.5.1.RELEASE</li>
  <li>Spring Data Elasticsearch 2.10.RELEASE</li>
  <li>Elastic Search 5.0</li>
  </ul>
  
  <p>I think this is a issue with Elastic and above library version mismatch.
  I'm new to Elastic and also Spring. The version issue is here.
  <a href="https://github.com/spring-projects/spring-data-elasticsearch/wiki/Spring-Data-Elasticsearch---Spring-Boot---version-matrix" rel="nofollow noreferrer">https://github.com/spring-projects/spring-data-elasticsearch/wiki/Spring-Data-Elasticsearch---Spring-Boot---version-matrix</a></p>
  
  <p>And also here is my pom.xml. If I need to update any library, can anyone tell me what's that ? And also tell me how to update those libraries ? Can I update them without changing to my source code ? </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>
  
  <p>http://maven.apache.org/xsd/maven-4.0.0.xsd">
      4.0.0</p>
  
  <pre><code>&lt;artifactId&gt;springboot-springdata-elasticsearch-example&lt;/artifactId&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  &lt;url&gt;https://www.mkyong.com&lt;/url&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.5.1.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;properties&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-elasticsearch&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Runtime, for Embedded Elasticsearch,
          comment this if connect to external elastic search server--&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.java.dev.jna&lt;/groupId&gt;
          &lt;artifactId&gt;jna&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;!-- Package as an executable jar/war --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>In this pom.xml , I can't find all the dependencies too. </p>