accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <busbey+li...@cloudera.com>
Subject Re: Failed to connect to server
Date Thu, 27 Mar 2014 13:49:57 GMT
Hi!

What host name is in your master/slaves files? In the error below, it looks
like the host name is not resolvable from your remote machine.

e.g. if it is the host name "tserver.accumulo.example.com" then the
following must work from the remote machine for the name to be correct:

$> host tserver.accumulo.example.com
tserver.accumulo.example.com has address 10.10.38.103
$>


On Thu, Mar 27, 2014 at 4:00 AM, escribamarko <escribamarko@gmail.com>wrote:

> Hi,
>
> We have setup Accumulo Instance deployed in cloud. But when I am trying to
> connect with it remotely. Using java client, I have this issue:
>
> 2014-03-27 16:17:29,191 [zookeeper.ZooKeeper] INFO : Initiating client
> connection, connectString=host:2181 sessionTimeout=1200000
> watcher=org.apache.accumulo.fate.zookeeper.ZooSession$ZooWatcher@3ea948c2
> 2014-03-27 16:17:29,418 [zookeeper.ClientCnxn] DEBUG:
> zookeeper.disableAutoWatchReset is false
> [zookeeper.ClientCnxn] INFO : Opening socket connection to server
> host:2181.
> Will not attempt to authenticate using SASL (unknown error)
> 2014-03-27 16:17:29,940 [zookeeper.ClientCnxn] INFO : Socket connection
> established to host:2181, initiating session
> 2014-03-27 16:17:29,943 [zookeeper.ClientCnxn] DEBUG: Session establishment
> request sent on host:2181
> 2014-03-27 16:17:30,208 [zookeeper.ClientCnxn] INFO : Session establishment
> complete on server host:2181, sessionid = 0x1450292fedd0008, negotiated
> timeout = 140000
> 2014-03-27 16:17:30,516 [zookeeper.ClientCnxn] DEBUG: Reading reply
> sessionid:0x1450292fedd0008, packet:: clientPath:null serverPath:null
> finished:false header:: 1,3  replyHeader:: 1,4763,0  request::
> '/accumulo/instances/accumulo-dev01,T  response::
> s{4,4,1395797760834,1395797760834,0,0,0,0,36,0,4}
> 2014-03-27 16:17:30,768 [zookeeper.ClientCnxn] DEBUG: Reading reply
> sessionid:0x1450292fedd0008, packet:: clientPath:null serverPath:null
> finished:false header:: 2,4  replyHeader:: 2,4763,0  request::
> '/accumulo/instances/accumulo-dev01,T  response::
>
> #63356539626465342d326564382d346133642d386533392d636631366264393936623764,s{4,4,1395797760834,1395797760834,0,0,0,0,36,0,4}
> 2014-03-27 16:17:31,033 [zookeeper.ClientCnxn] DEBUG: Reading reply
> sessionid:0x1450292fedd0008, packet:: clientPath:null serverPath:null
> finished:false header:: 3,3  replyHeader:: 3,4763,0  request::
> '/accumulo/c5e9bde4-2ed8-4a3d-8e39-cf16bd996b7d,T  response::
> s{5,5,1395797760837,1395797760837,0,17,0,0,0,17,99}
> 2014-03-27 16:17:31,280 [zookeeper.ClientCnxn] DEBUG: Reading reply
> sessionid:0x1450292fedd0008, packet:: clientPath:null serverPath:null
> finished:false header:: 4,4  replyHeader:: 4,4763,0  request::
> '/accumulo/c5e9bde4-2ed8-4a3d-8e39-cf16bd996b7d,T  response::
> ,s{5,5,1395797760837,1395797760837,0,17,0,0,0,17,99}
> 2014-03-27 16:17:31,619 [zookeeper.ClientCnxn] DEBUG: Reading reply
> sessionid:0x1450292fedd0008, packet:: clientPath:null serverPath:null
> finished:false header:: 5,8  replyHeader:: 5,4763,0  request::
> '/accumulo/c5e9bde4-2ed8-4a3d-8e39-cf16bd996b7d/tservers,T  response::
> v{'host.78:9997}
> 2014-03-27 16:17:31,871 [zookeeper.ClientCnxn] DEBUG: Reading reply
> sessionid:0x1450292fedd0008, packet:: clientPath:null serverPath:null
> finished:false header:: 6,8  replyHeader:: 6,4763,0  request::
> '/accumulo/c5e9bde4-2ed8-4a3d-8e39-cf16bd996b7d/tservers/host:9997,T
> response:: v{'zlock-0000000000}
> 2014-03-27 16:17:32,126 [zookeeper.ClientCnxn] DEBUG: Reading reply
> sessionid:0x1450292fedd0008, packet:: clientPath:null serverPath:null
> finished:false header:: 7,3  replyHeader:: 7,4763,0  request::
>
> '/accumulo/c5e9bde4-2ed8-4a3d-8e39-cf16bd996b7d/tservers/host:9997/zlock-0000000000,T
> response::
> s{4668,4668,1395907582513,1395907582513,0,0,0,91482197795340290,29,0,4668}
> 2014-03-27 16:17:32,383 [zookeeper.ClientCnxn] DEBUG: Reading reply
> sessionid:0x1450292fedd0008, packet:: clientPath:null serverPath:null
> finished:false header:: 8,4  replyHeader:: 8,4763,0  request::
>
> '/accumulo/c5e9bde4-2ed8-4a3d-8e39-cf16bd996b7d/tservers/host.78:9997/zlock-0000000000,T
> response::
>
> #54534552565f434c49454e543d3137322e33312e322e37383a39393937,s{4668,4668,1395907582513,1395907582513,0,0,0,91482197795340290,29,0,4668}
>
> 2014-03-27 16:17:53,402 [impl.ThriftTransportPool] DEBUG: Failed to connect
> to host:9997:9997 (120000)
> org.apache.thrift.transport.TTransportException: java.net.ConnectException:
> Connection timed out: connect
>         at
>
> org.apache.accumulo.core.client.impl.ThriftTransportPool.createNewTransport(ThriftTransportPool.java:493)
>         at
>
> org.apache.accumulo.core.client.impl.ThriftTransportPool.getAnyTransport(ThriftTransportPool.java:447)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.getConnection(ServerClient.java:154)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.getConnection(ServerClient.java:128)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.getConnection(ServerClient.java:123)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.executeRaw(ServerClient.java:105)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.execute(ServerClient.java:71)
>         at
>
> org.apache.accumulo.core.client.impl.ConnectorImpl.<init>(ConnectorImpl.java:64)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:228)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:223)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:234)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:218)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:318)
>         at AccumuloConnection.ConnectToAccumulo(AccumuloConnection.java:50)
>         at Main.main(Main.java:13)
> Caused by: java.net.ConnectException: Connection timed out: connect
>         at sun.nio.ch.Net.connect0(Native Method)
>         at sun.nio.ch.Net.connect(Unknown Source)
>         at sun.nio.ch.Net.connect(Unknown Source)
>         at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
>         at sun.nio.ch.SocketAdaptor.connect(Unknown Source)
>         at sun.nio.ch.SocketAdaptor.connect(Unknown Source)
>         at
>
> org.apache.accumulo.core.util.TTimeoutTransport.create(TTimeoutTransport.java:48)
>         at
>
> org.apache.accumulo.core.client.impl.ThriftTransportPool.createNewTransport(ThriftTransportPool.java:491)
>         ... 14 more
> 2014-03-27 16:17:53,404 [impl.ServerClient] WARN : Failed to find an
> available server in the list of servers: [host:9997:9997 (120000)]
> 2014-03-27 16:17:53,404 [impl.ServerClient] DEBUG: ClientService request
> failed null, retrying ...
> org.apache.thrift.transport.TTransportException: Failed to connect to a
> server
>         at
>
> org.apache.accumulo.core.client.impl.ThriftTransportPool.getAnyTransport(ThriftTransportPool.java:455)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.getConnection(ServerClient.java:154)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.getConnection(ServerClient.java:128)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.getConnection(ServerClient.java:123)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.executeRaw(ServerClient.java:105)
>         at
>
> org.apache.accumulo.core.client.impl.ServerClient.execute(ServerClient.java:71)
>         at
>
> org.apache.accumulo.core.client.impl.ConnectorImpl.<init>(ConnectorImpl.java:64)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:228)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:223)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:234)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:218)
>         at
>
> org.apache.accumulo.core.client.ZooKeeperInstance.getConnector(ZooKeeperInstance.java:318)
>         at AccumuloConnection.ConnectToAccumulo(AccumuloConnection.java:50)
>         at Main.main(Main.java:13)
>
>
> Have set the client ports to OPEN. Have already checked for missing jars.
> Turned vm.swappines to off.
> I have already seen this ticket ACCUMULO-687 which has been resolved. But I
> am still having this error. Everything is working fine locally on accumulo
> instance, I can access accumulo shell. As well as the HTTP monitor on
> clients browser.
>
> Your help will be much appreciated. Thank you.
>
> I have used Accumulo 1.5.1, Zookeeper 3.4.5 and Hadoop 2.2.0 for this
> environment.
>
>
>
>
> --
> View this message in context:
> http://apache-accumulo.1065345.n5.nabble.com/Failed-to-connect-to-server-tp8484.html
> Sent from the Developers mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message