title: HBase Remote Connection on Region Failure
body: <p>For the last two days I have tried just about everything to get a remote machine to connect with HBase.  Below is the error I am receiving as well as all my configs. I am connecting to my VM via my laptop.  VM is ubuntu, laptop is win7</p>
  
  <p>Any help will be greatly appreciated.</p>
  
  <p>/etc/hosts</p>
  
  <pre><code>127.0.0.1       localhost
  192.168.1.139   ubuntuvm-1204-64
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  </code></pre>
  
  <p>/usr/local/hbase/conf/hbase-site.xml</p>
  
  <pre><code>&lt;configuration&gt;
  &lt;property&gt;
      &lt;name&gt;hbase.rootdir&lt;/name&gt;
      &lt;value&gt;file:///usr/local/hadoop-apps/hbase/&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
      &lt;name&gt;hbase.cluster.distributed&lt;/name&gt;
      &lt;value&gt;true&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
      &lt;name&gt;hbase.zookeeper.quorum&lt;/name&gt;
      &lt;value&gt;192.168.1.139&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
      &lt;name&gt;hbase.master.info.port&lt;/name&gt;
      &lt;value&gt;60010&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
    &lt;name&gt;hbase.master.info.bindAddress&lt;/name&gt;
    &lt;value&gt;192.168.1.139&lt;/value&gt;
  &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>nano /usr/local/hbase/conf/regionservers</p>
  
  <pre><code>192.168.1.139
  </code></pre>
  
  <p>Java Code</p>
  
  <pre><code>Configuration config = HBaseConfiguration.create();
  
  config.set("hbase.master", "192.168.1.139:60010");
  config.set("hbase.zookeeper.quorum", "192.168.1.139");
  config.set("hbase.zookeeper.property.clientPort","2181");
  
  HTable table;
  try 
  {
      table = new HTable(config, "t");
      Put p = new Put(Bytes.toBytes("r1"));
      p.add(Bytes.toBytes("cf"), Bytes.toBytes("someQualifier"),
      Bytes.toBytes("Some Value"));
      table.put(p);
  .......
  </code></pre>
  
  <p>Hbase Shell</p>
  
  <pre><code>Version 0.94.3, r1408904, Wed Nov 14 19:55:11 UTC 2012
  
  hbase(main):001:0&gt; list
  TABLE                                                                          
  t                                                                              
  1 row(s) in 0.8950 seconds
  
  hbase(main):002:0&gt; 
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:host.name=WABELHL.org
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:java.version=1.7.0_09
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:java.home=C:\Program Files\Java\jre7
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:java.class.path=C:\Users\laptop\workspace\textXML\bin;C:\Users\laptop\Downloads\hbase-0.94.3\lib\commons-configuration-1.6.jar;C:\Users\laptop\Downloads\hbase-0.94.3\lib\commons-lang-2.5.jar;C:\Users\laptop\Downloads\hbase-0.94.3\lib\commons-logging-1.1.1.jar;C:\Users\laptop\Downloads\hbase-0.94.3\lib\hadoop-core-1.0.4.jar;C:\Users\laptop\Downloads\hbase-0.94.3\lib\log4j-1.2.16.jar;C:\Users\laptop\Downloads\hbase-0.94.3\lib\protobuf-java-2.4.0a.jar;C:\Users\laptop\Downloads\hbase-0.94.3\lib\slf4j-api-1.4.3.jar;C:\Users\laptop\Downloads\hbase-0.94.3\lib\slf4j-log4j12-1.4.3.jar;C:\Users\laptop\Downloads\hbase-0.94.3\lib\zookeeper-3.4.3.jar;C:\Users\laptop\Downloads\hbase-0.94.3\hbase-0.94.3.jar
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:\Program Files\Java\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\app\laptop...
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:\Users\laptop\AppData\Local\Temp\
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:java.compiler=&lt;NA&gt;
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:os.name=Windows 7
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:os.version=6.1
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:user.name=laptop
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:user.home=C:\Users\laptop
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Client environment:user.dir=C:\Users\laptop\workspace\textXML
  13/01/15 21:53:08 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.1.139:2181 sessionTimeout=180000 watcher=hconnection
  13/01/15 21:53:08 INFO zookeeper.ClientCnxn: Opening socket connection to server /192.168.1.139:2181
  13/01/15 21:53:08 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 7148@WABELHLP0532619
  13/01/15 21:53:13 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
  13/01/15 21:53:13 INFO zookeeper.ClientCnxn: Socket connection established to 192.168.1.139/192.168.1.139:2181, initiating session
  13/01/15 21:53:13 INFO zookeeper.ClientCnxn: Session establishment complete on server 192.168.1.139/192.168.1.139:2181, sessionid = 0x13c41eaab9b0005, negotiated timeout = 180000
  org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for t,,99999999999999 after 10 tries.
  at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:955)
      at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:860)
  at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:962)
  at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:864)
  at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:821)
  at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:234)
  at org.apache.hadoop.hbase.client.HTable.&lt;init&gt;(HTable.java:174)
  at org.apache.hadoop.hbase.client.HTable.&lt;init&gt;(HTable.java:133)
  at runTest.main(runTest.java:46)
  </code></pre>