In HBaseClient, its here:
if (remoteId.getAddress().isUnresolved()) {
throw new UnknownHostException("unknown host: " +
remoteId.getAddress().getHostName());
}
getAddress is an InetSocketAddress..... and javadoc for isUnresolved:
"....true if the hostname couldn't be resolved into an InetAddress."
Its kinda baffling Roman especially if other clients -- shell -- can
get to master fine.
St.Ack
On Wed, Nov 2, 2011 at 10:18 AM, Roman Shaposhnik <[email protected]> wrote:
> I'm trying to run a few tests on the combination and I'm hitting a problem
> that
> I haven't seen before in my setup. This could very well, be a configuration
> issue, but at this point, I'm stuck and would love to hear what others
> have to say.
>
> Here's the deal: my test is doing this:
>
> -------------------------------------------------------------------------------
> import org.apache.hadoop.hbase.HBaseConfiguration;
> ....
> HBaseAdmin(HBaseConfiguration.create());
> -------------------------------------------------------------------------------
>
> and is seeing the following exception:
>
> 11/11/02 12:32:20 DEBUG ipc.HBaseRPC: Using
> org.apache.hadoop.hbase.ipc.WritableRpcEngine for
> org.apache.hadoop.hbase.ipc.HMasterInterface
> 11/11/02 12:32:20 DEBUG ipc.HBaseClient: The ping interval is60000ms.
> 11/11/02 12:32:20 INFO
> client.HConnectionManager$HConnectionImplementation: getMaster attempt
> 0 of 10 failed; retrying after sleep of 1000
> java.net.UnknownHostException: unknown host: ip-10-118-254-245.ec2.internal
> at
> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.<init>(HBaseClient.java:232)
> at
> org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:992)
> at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:854)
> at
> org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:149)
> at $Proxy9.getProtocolVersion(Unknown Source)
> at
> org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:182)
> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:295)
> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:272)
> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:324)
> at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:594)
> at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:108)
> at
> org.apache.bigtop.itest.hbase.util.HBaseTestUtil.getAdmin(HBaseTestUtil.java:68)
>
> The host ip-10-118-254-245.ec2.internal is a valid host name, it is
> pingable and DNS lookup'able (I even added all the entries for
> all the hosts in the cluster to each hosts' /etc/hosts).
>
> On top of that a standalone hbase shell has no trouble creating tables
> and putting data into them.
>
> What can be going wrong?
>
> Thanks,
> Roman.
>