Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase, mail # user - Thrift on regionservers - won't connect


+
Tomas Tillery 2012-02-09, 19:19
+
Jean-Daniel Cryans 2012-02-09, 19:27
Copy link to this message
-
Re: Thrift on regionservers - won't connect
Tomas Tillery 2012-02-09, 19:38
No, it isn't - as far as I know, it should be aiming for 60010, rather than
60000 (though HBase is also bound to 60000, there's no telnet response
there). There's probably something obvious I'm not managing to see, but I
can't find a way to redirect it to the proper port.
Starting thrift with this install is a matter of invoking
/etc/init.d/hadoop-hbase-thrift. Since it isn't invoked through the shell
script, I'm not sure where to specify the port to connect to.

On Thu, Feb 9, 2012 at 2:27 PM, Jean-Daniel Cryans <[EMAIL PROTECTED]>wrote:

> Connection refused is a java exception that usually means that either
> there's nothing listening on the port or it's firewall'd. Is
> "master:60000" really what you're expecting to see here? Should be
> easy to "telnet master 60000" from that machien to really verify that
> it works as expected.
>
> J-D
>
> On Thu, Feb 9, 2012 at 11:19 AM, Tomas Tillery <[EMAIL PROTECTED]>
> wrote:
> > Hello, all
> >
> > It's my understanding that it's best practice to colocate thrift on each
> of
> > the regionservers, and use load balancing to spread queries between them.
> > However, I can't seem to get thrift to bind from the regionservers (only
> > from the hmaster).
> >
> > The machines have connectivity between them; regionservers connect and
> > communicate with the hmaster without any problems.
> >
> > I'm running Hadoop 0.20.2-cdh3u2, HBase 0.90.4-cdh3u2.
> >
> > Thrift can run succesfully from the HMaster, but not from any of the
> > datanode/regionservers
> >
> > What appears to be the relevant content from
> > hbase-hbase-thrift-region-1.out below:
> >
> > 12/02/09 19:09:17 INFO
> client.HConnectionManager$HConnectionImplementation:
> > getMaster attempt 0 of 10 failed; retrying after sleep of 1000
> > java.net.ConnectException: Connection refused
> >        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> >        at
> > sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
> >        at
> >
> org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
> >        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:408)
> >        at
> >
> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:328)
> >        at
> >
> org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:883)
> >        at
> > org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:750)
> >        at
> > org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:257)
> >        at $Proxy4.getProtocolVersion(Unknown Source)
> >        at
> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:419)
> >        at
> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:393)
> >        at
> org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:444)
> >        at
> >
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:360)
> >        at
> > org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
> >        at
> >
> org.apache.hadoop.hbase.thrift.ThriftServer$HBaseHandler.<init>(ThriftServer.java:194)
> >        at
> >
> org.apache.hadoop.hbase.thrift.ThriftServer$HBaseHandler.<init>(ThriftServer.java:188)
> >        at
> > org.apache.hadoop.hbase.thrift.ThriftServer.doMain(ThriftServer.java:870)
> >        at
> > org.apache.hadoop.hbase.thrift.ThriftServer.main(ThriftServer.java:927)
> > 12/02/09 19:09:18 INFO
> client.HConnectionManager$HConnectionImplementation:
> > getMaster attempt 1 of 10 failed; retrying after sleep of 1000
> > java.net.ConnectException: Connection refused
> >        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> >        at
> > sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
> >        at
> >
> org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
> >        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:408)
> >        at
> >
> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:328)
+
Jean-Daniel Cryans 2012-02-09, 19:43
+
Tomas Tillery 2012-02-09, 19:48
+
Tomas Tillery 2012-02-10, 20:21
+
Jean-Daniel Cryans 2012-02-10, 22:47