title: Java elasticsearch client always null
body: <p>I've recently made the switch from elasticsearch 1.7 to 2.0 and I noticed the way you setup the client has changed. I went through the documentation and for some reason the client is always null. I was wondering if I have set it up correctly.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    Client client = null;
  
      try {
          client = TransportClient.builder().build().addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));
      } catch (Exception e) {
          Logger.log(e);
      } finally {
          client.close();
          try {
              conn.close();
          } catch (SQLException e) {
              Logger.log(e);
          }
      }
  </code></pre>