title: Getting error in ElasticSearch
body: <p>I'm using ElasticSearch-5.2.1 with springboot and getting below error in elasticsearch.bat </p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: Received message from unsupported version: [2.0.0] minimal compatible version is: [5.0.0]</p>
  </blockquote>
  
  <p>and in my application console getting below error:</p>
  
  <blockquote>
    <p>Caused by: 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>When i search in google it is asking to upgrade transport client but How do i upgrade the transport client from 2.0 to 5.0</p>
  
  <p>below is my config code:</p>
  
  <pre><code>@Value("${elasticsearch.port}")
  private int EsPort;
  
  @Value("${elasticsearch.clustername}")
  private String EsClusterName;
  </code></pre>
  
  <p>@Value("${elasticsearch.host}")
      private String EsHost;</p>
  
  <pre><code> @Bean
  public Client client() throws Exception {
  
      Settings esSettings = Settings.settingsBuilder().put("cluster.name", EsClusterName).build();
  
  
      return TransportClient.builder()
              .settings(esSettings)
              .build()
              .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(EsHost), EsPort));
  }
  
  @Bean
  public ElasticsearchOperations elasticsearchTemplate() throws Exception {
      return new ElasticsearchTemplate(client());
  }
  </code></pre>