title: How to connect to remote HBase in Java?
body: <p>I have a standlone HBase server. 
  This is my hbase-site.xml: </p>
  
  <pre><code>&lt;configuration&gt;
   &lt;property&gt;
      &lt;name&gt;hbase.rootdir&lt;/name&gt;
      &lt;value&gt;file:///hbase_data&lt;/value&gt;
    &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I am trying to write a Java program to manipulate the data in the HBase. </p>
  
  <p>If I run the program on the HBase server, it works fine. But I don't know how to config it for remote access. </p>
  
  <pre><code>  Configuration config = HBaseConfiguration.create();
     HTable table = new HTable(config, "test");
     Scan s = new Scan();
  </code></pre>
  
  <p>I have tried adding IP and Port, it doesn't work: </p>
  
  <pre><code>config.set("hbase.master", "146.169.35.28:60000")
  </code></pre>
  
  <p>Can anyone tell me how to do it? </p>
  
  <p>Thanks!</p>