You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by "Jim R. Wilson" <wi...@gmail.com> on 2008/04/29 19:11:27 UTC

[hbase-user] HRegionServer using external IP address

Hi all,

I know many people have had this problem, and I'm interested in the
once-and-for-all solution.  The problem is that even though hadoop and
hbase are configured to bind to a particular address (say 127.0.0.1),
the region server is /reporting/ that it's bound to an external IP
address (say 74.x.x.x).

In my particular setup, I am trying to run a single-node cluster in
pseudo-distributed mode on Red Hat Enterprise Linux.  The box is in a
datacenter and has a strictly guarded external IP as well as an
internal LAN IP in the 192.168 range.  I have successfully installed
hadoop and can move files around in hdfs.  On top of that, I have
hbase, which is set to use "hdfs://localhost:54310/hbase" for storage,
and I can confirm that the /hbase directory has been setup
appropriately in the distributed filesystem.

What I'm seeing looks a lot like this archived problem:
http://article.gmane.org/gmane.comp.jakarta.lucene.hadoop.user/2285

I see logs like this:
  INFO org.apache.hadoop.hbase.HRegionServer: HRegionServer started
at: 74.x.x.x:60020
even after I have explicitly set the "hbase.regionserver" property to
"127.0.0.1:60020".

To be fair, netstat reports that the regionserver is bound to
127.0.0.1:60020, but that doesn't explain the log message, or why the
shell tries to connect over the external 74.x.x.x address, as
illustrated by logs like these:

2008-04-29 07:16:00,291 INFO org.apache.hadoop.hbase.HMaster: received
start message from: 74.*.*.*:60020
2008-04-29 07:16:01,126 INFO org.apache.hadoop.hbase.HMaster:
assigning region -ROOT-,,0 to the only server 74.*.*.*:60020
2008-04-29 07:16:04,133 INFO org.apache.hadoop.hbase.HMaster:
74.*.*.*:60020 serving -ROOT-,,0
2008-04-29 07:16:04,134 INFO org.apache.hadoop.hbase.HMaster:
HMaster.rootScanner scanning meta region {regionname: -ROOT-,,0,
startKey: <>, server: 74.*.*.*:60020}
2008-04-29 07:17:04,147 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: /74.*.*.*:60020. Already tried 1 time(s).
2008-04-29 07:18:05,152 INFO org.apache.hadoop.ipc.Client: Retrying
connect to server: /74.*.*.*:60020. Already tried 2 time(s).
... etc etc etc

Please help.  I know somebody knows the answer to this problem. :/

-- Jim R. Wilson (jimbojw)