Error connecting to hyoertable using Java client

28 views
Skip to first unread message

Joel

unread,
Sep 29, 2010, 7:55:08 AM9/29/10
to Hypertable User
I get the following when running BasicClientTest.


joel@bohr:~/dev/hypertable/hypertable-0.9.4.1-alpha/src/java/
ThriftClient$ java -cp "/opt/hypertable/current/lib/java/*"
org.hypertable.thrift.BasicClientTest
org.apache.thrift.transport.TTransportException:
java.net.ConnectException: Connection refused
at org.apache.thrift.transport.TSocket.open(TSocket.java:184)
at
org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:
65)
at org.hypertable.thrift.ThriftClient.open(ThriftClient.java:47)
at org.hypertable.thrift.ThriftClient.create(ThriftClient.java:34)
at org.hypertable.thrift.ThriftClient.create(ThriftClient.java:43)
at org.hypertable.thrift.BasicClientTest.main(BasicClientTest.java:
22)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at org.apache.thrift.transport.TSocket.open(TSocket.java:179)
... 5 more






The hypertable processes are all running:



joel@bohr:~/dev/hypertable/hypertable-0.9.4.1-alpha/src/java/
ThriftClient$ ps -ef | grep hyper
joel 310 28849 0 12:54 pts/9 00:00:00 grep --color=auto
hyper
root 31750 1 0 12:44 pts/5 00:00:00 /opt/hypertable/
current/bin/localBroker --pidfile /opt/hypertable/current/run/
DfsBroker.local.pid --verbose
root 31752 1 0 12:44 pts/5 00:00:00 /opt/hypertable/
current/bin/Hyperspace.Master --pidfile /opt/hypertable/current/run/
Hyperspace.pid --verbose
root 31824 1 0 12:44 pts/5 00:00:00 /opt/hypertable/
current/bin/Hypertable.Master --pidfile /opt/hypertable/current/run/
Hypertable.Master.pid --verbose
root 31875 1 0 12:44 pts/5 00:00:00 /opt/hypertable/
current/bin/Hypertable.RangeServer --pidfile /opt/hypertable/current/
run/Hypertable.RangeServer.pid --verbose



Any clues?

Sanjit Jhala

unread,
Sep 29, 2010, 1:38:21 PM9/29/10
to hyperta...@googlegroups.com
Hi Joel,

Looks like the thriftbroker is not running. How are you starting the procs? You might want to look at /opt/hypertable/current/logs/ThriftBroker.log to see whats going on.

-Sanjit


--
You received this message because you are subscribed to the Google Groups "Hypertable User" group.
To post to this group, send email to hyperta...@googlegroups.com.
To unsubscribe from this group, send email to hypertable-us...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hypertable-user?hl=en.


Joel

unread,
Sep 30, 2010, 6:56:59 AM9/30/10
to Hypertable User
Hi Sanjit,

I can confirm that the Thrift broker is running and listening on the
correct port:

root@bohr:/opt/hypertable/current# lsof -i :38080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ThriftBro 4525 root 12u IPv4 1354520 0t0 TCP *:38080 (LISTEN)


No exceptions in the log file either, I'm stumped!
> > hypertable-us...@googlegroups.com<hypertable-user%2Bunsubscribe@ googlegroups.com>
> > .

Sanjit Jhala

unread,
Sep 30, 2010, 12:25:16 PM9/30/10
to hyperta...@googlegroups.com
So you are running everything locally on one machine right? Can you check your firewall settings to make sure the port is free? Btw have you tried running the regression tests?

-Sanjit


To unsubscribe from this group, send email to hypertable-us...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages