title: ElasticSearch Java API TransportClient address in configuration file
body: <p>Given the application using ElasticSearch's JavaAPI TransportClient, i want to use native <code>elasticsearch.yml</code> (resolved by <code>InternalSettingsPreparer</code>) config file in class path to connect to cluster via transport.</p>
  
  <p>For now i have the following contents:</p>
  
  <pre><code>cluster:
    name: elasticsearch # would be ${es.cluster.name}
  
  network:
    host: localhost 
    transport_address: localhost:9301 # would be ${es.network.trasport}
  </code></pre>
  
  <p>and the initialisation of client:</p>
  
  <pre><code>TransportClient client = new TransportClient();
  </code></pre>
  
  <p>Which gives me exception:</p>
  
  <pre><code>13/12/16 14:04:40 INFO elasticsearch.plugins: [Hanna Levy] loaded [], sites []
  org.elasticsearch.client.transport.NoNodeAvailableException: No node available
  </code></pre>
  
  <p>But when I add the following line</p>
  
  <pre><code>client.addTransportAddress(new InetSocketTransportAddress("localhost", 9301));
  </code></pre>
  
  <p>things begin to work as expected. </p>
  
  <p>So i wonder, whether is there a way to configure transport addresses from standard configuration file format and not re-invent the wheel by having a config file for config file?</p>