title: ZooKeeper returning junk characters for HBase server address
body: <p>how's it goin?</p>
  
  <p>Sorry if I sound stupid here.</p>
  
  <p>I'm trying to create a basic play2.0 - HBase app. When I try to connect HBase from play, ZooKeeper is returning me junk characters for HBase server address.</p>
  
  <pre><code>def main(args : Array[String]) : Unit = {
   val conf =  HBaseConfiguration create
   val admin = new HBaseAdmin(conf)
  
   // list the tables
   val listtables = admin.listTables()
   listtables.foreach(println)
  }
  </code></pre>
  
  <p>I've nailed down to the weak spot and it's at org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker. It's loading data with junk values for local address and port, which is then passed down to HServerAddress class for further action.</p>
  
  <p>I've looked at my hbase-site.xml (contains just localhost) and hbase-default.xml, which are looking just fine as directed by Apache.</p>
  
  <pre><code>&lt;configuration&gt;
  &lt;property&gt;
      &lt;name&gt;hbase.rootdir&lt;/name&gt;
      &lt;value&gt;file:///Users/gchandra/Applications/hbase-0.92.1/data-store/hbase&lt;/value&gt;
  &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Pasted below is stack trace.</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Not a host:port pair: ?���5610@L-C02FF6MTDF91��192.168.1.4,64256,1332739256936
  at org.apache.hadoop.hbase.HServerAddress.&lt;init&gt;(HServerAddress.java:60)
  at org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:63)
  at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:354)
  at org.apache.hadoop.hbase.client.HBaseAdmin.&lt;init&gt;(HBaseAdmin.java:94)
  at services.HBaseConnection$.main(HBaseConnection.scala:20)
  at services.HBaseConnection.main(HBaseConnection.scala)
  </code></pre>
  
  <p>Appreciate it if someone could help me out here! Thanks! </p>