You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by escribamarko <es...@gmail.com> on 2014/03/27 10:00:18 UTC

Failed to connect to server

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.

Re: Failed to connect to server

Posted by escribamarko <es...@gmail.com>.
Hi Sean, 

I wasn't able to solve my problem, but I found a way to connect to the
instance usingclient. My remedy is to develop a JDK that will execute the
commands on the accumulo locally. The client will interact using this JDK to
accumulo. And it's working fine.

Thank a lot!



--
View this message in context: http://apache-accumulo.1065345.n5.nabble.com/Failed-to-connect-to-server-tp8484p8678.html
Sent from the Developers mailing list archive at Nabble.com.

Re: Failed to connect to server

Posted by Sean Busbey <bu...@cloudera.com>.
1) You should update your HDFS config to refer to the namenode by hostname
and not as localhost. Ideally you should set up a nameservice so that the
namenode could be changed in teh future, but that's inconsequential ATM.

2) on the EC2 host, can you copy/paste the output of "which hadoop" as the
user you're using to start accumulo?

3) on the EC2 host, can you run "host
ec2-XXXXXXXXX.us-west-1.compute.amazonaws.com"



On Thu, Mar 27, 2014 at 10:06 PM, escribamarko <es...@gmail.com>wrote:

> Hi Josh,
>
> Thank you.
>
> I have checked the variables in accumulo-env.sh, and it seems like they are
> properly configured.
> I am having this issue ""You must set HADOOP_PREFIX"" only if I use
> ec2-XXXXXXXX.us-west-1.compute.amazonaws.com on master/slaves files. But
> when I set internal 172.30.1.78 on master/slaves file everything is working
> locally.
>
> For a reference, here is the accumulo-env.sh
>
> if [ -z "$HADOOP_HOME" ]
> then
>    test -z "$HADOOP_PREFIX"      && export HADOOP_PREFIX=$HADOOP_HDFS_HOME
> else
>    HADOOP_PREFIX="$HADOOP_PREFIX "
>    unset HADOOP_HOME
> fi
> # test -z "$HADOOP_CONF_DIR"       && export
> HADOOP_CONF_DIR="$HADOOP_PREFIX/conf"
> # hadoop-2.0:
> test -z "$HADOOP_CONF_DIR"     && export
> HADOOP_CONF_DIR="$HADOOP_PREFIX/etc/hadoop"
>
>
> test -z "$JAVA_HOME"             && export JAVA_HOME=$JAVA_HOME
> test -z "$ZOOKEEPER_HOME"        && export ZOOKEEPER_HOME=$ZOOKEEPER_HOME
> test -z "$ACCUMULO_LOG_DIR"      && export
> ACCUMULO_LOG_DIR=$ACCUMULO_HOME/logs
> if [ -f ${ACCUMULO_CONF_DIR}/accumulo.policy ]
> then
>    POLICY="-Djava.security.manager
> -Djava.security.policy=${ACCUMULO_CONF_DIR}/accumulo.policy"
> Fi
> test -z "$ACCUMULO_TSERVER_OPTS" && export ACCUMULO_TSERVER_OPTS="${POLICY}
> -Xmx384m -Xms384m "
> test -z "$ACCUMULO_MASTER_OPTS"  && export ACCUMULO_MASTER_OPTS="${POLICY}
> -Xmx128m -Xms128m"
> test -z "$ACCUMULO_MONITOR_OPTS" && export ACCUMULO_MONITOR_OPTS="${POLICY}
> -Xmx64m -Xms64m"
> test -z "$ACCUMULO_GC_OPTS"      && export ACCUMULO_GC_OPTS="-Xmx64m
> -Xms64m"
> test -z "$ACCUMULO_GENERAL_OPTS" && export
> ACCUMULO_GENERAL_OPTS="-XX:+UseConcMarkSweepGC
> -XX:CMSInitiatingOccupancyFraction=75 -Djava$
> test -z "$ACCUMULO_OTHER_OPTS"   && export ACCUMULO_OTHER_OPTS="-Xmx128m
> -Xms64m"
> # what do when the JVM runs out of heap memory
> export ACCUMULO_KILL_CMD='kill -9 %p'
>
> # Should the monitor bind to all network interfaces -- default: false
> # export ACCUMULO_MONITOR_BIND_ALL="true"
>
>
> Should I also need to add "export ACCUMULO_TSERVER_OPTS" and rest
> accumulo_opts on .bashrc?
>
> Thanks in advance.
>
>
>

Re: Failed to connect to server

Posted by escribamarko <es...@gmail.com>.
Hi Josh,

Thank you.

I have checked the variables in accumulo-env.sh, and it seems like they are
properly configured.
I am having this issue ""You must set HADOOP_PREFIX"" only if I use
ec2-XXXXXXXX.us-west-1.compute.amazonaws.com on master/slaves files. But
when I set internal 172.30.1.78 on master/slaves file everything is working
locally. 

For a reference, here is the accumulo-env.sh

if [ -z "$HADOOP_HOME" ]
then
   test -z "$HADOOP_PREFIX"      && export HADOOP_PREFIX=$HADOOP_HDFS_HOME
else
   HADOOP_PREFIX="$HADOOP_PREFIX "
   unset HADOOP_HOME
fi
# test -z "$HADOOP_CONF_DIR"       && export
HADOOP_CONF_DIR="$HADOOP_PREFIX/conf"
# hadoop-2.0:
test -z "$HADOOP_CONF_DIR"     && export
HADOOP_CONF_DIR="$HADOOP_PREFIX/etc/hadoop"
	

test -z "$JAVA_HOME"             && export JAVA_HOME=$JAVA_HOME
test -z "$ZOOKEEPER_HOME"        && export ZOOKEEPER_HOME=$ZOOKEEPER_HOME
test -z "$ACCUMULO_LOG_DIR"      && export
ACCUMULO_LOG_DIR=$ACCUMULO_HOME/logs
if [ -f ${ACCUMULO_CONF_DIR}/accumulo.policy ]
then
   POLICY="-Djava.security.manager
-Djava.security.policy=${ACCUMULO_CONF_DIR}/accumulo.policy"
Fi
test -z "$ACCUMULO_TSERVER_OPTS" && export ACCUMULO_TSERVER_OPTS="${POLICY}
-Xmx384m -Xms384m "
test -z "$ACCUMULO_MASTER_OPTS"  && export ACCUMULO_MASTER_OPTS="${POLICY}
-Xmx128m -Xms128m"
test -z "$ACCUMULO_MONITOR_OPTS" && export ACCUMULO_MONITOR_OPTS="${POLICY}
-Xmx64m -Xms64m"
test -z "$ACCUMULO_GC_OPTS"      && export ACCUMULO_GC_OPTS="-Xmx64m
-Xms64m"
test -z "$ACCUMULO_GENERAL_OPTS" && export
ACCUMULO_GENERAL_OPTS="-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75 -Djava$
test -z "$ACCUMULO_OTHER_OPTS"   && export ACCUMULO_OTHER_OPTS="-Xmx128m
-Xms64m"
# what do when the JVM runs out of heap memory
export ACCUMULO_KILL_CMD='kill -9 %p'

# Should the monitor bind to all network interfaces -- default: false
# export ACCUMULO_MONITOR_BIND_ALL="true"


Should I also need to add "export ACCUMULO_TSERVER_OPTS" and rest
accumulo_opts on .bashrc?

Thanks in advance.




--
View this message in context: http://apache-accumulo.1065345.n5.nabble.com/Failed-to-connect-to-server-tp8484p8520.html
Sent from the Developers mailing list archive at Nabble.com.

Re: Failed to connect to server

Posted by Josh Elser <jo...@gmail.com>.
You may not be getting a login-shell (your shell's configuration file is 
not being loaded) when it SSHs to the nodes in the cluster which would 
cause the HADOOP_PREFIX problem you presented.

An easy way to circumvent this is to just ensure that the environment 
variables in accumulo-env.sh are properly set. This will be a guarantee 
that Accumulo will always have the correct environment variables set.

On 3/27/14, 6:57 PM, escribamarko wrote:
> Hi Sean,
>
> Thank you for the response.
>
> This is the host name:
>
> ec2-XXXXXXXX.us-west-1.compute.amazonaws.com
>
> Our instance is deployed in AWS. I've tried
>
> $> host ec2-XXXXXXXX.us-west-1.compute.amazonaws.com
>   ec2-XXXXXXXX.us-west-1.compute.amazonaws.com has address 172.30.1.78
>
> 172.30.1.78 is configured in master/slaves files, as well as on gc, monitor
> and tracer. This is the internal address on aws instance.
>
> When I've tried ec2-XXXXXXXX.us-west-1.compute.amazonaws.com on
> master/slaves files, and start the accumulo, I've got an error on logs:
>
> "You must set HADOOP_PREFIX"
>
> But echo $HADOOP_PREFIX is returning the correct installation directory of
> hadoop.
>
> On hadoop core-site.xml
>
> <name>fs.default.name</name>
> <value>hdfs://localhost:9000</value>
>
> Thanks in advance.
>
>
>
> --
> View this message in context: http://apache-accumulo.1065345.n5.nabble.com/Failed-to-connect-to-server-tp8484p8518.html
> Sent from the Developers mailing list archive at Nabble.com.
>

Re: Failed to connect to server

Posted by escribamarko <es...@gmail.com>.
Hi Sean,

Thank you for the response.

This is the host name:

ec2-XXXXXXXX.us-west-1.compute.amazonaws.com

Our instance is deployed in AWS. I've tried

$> host ec2-XXXXXXXX.us-west-1.compute.amazonaws.com
 ec2-XXXXXXXX.us-west-1.compute.amazonaws.com has address 172.30.1.78

172.30.1.78 is configured in master/slaves files, as well as on gc, monitor
and tracer. This is the internal address on aws instance.

When I've tried ec2-XXXXXXXX.us-west-1.compute.amazonaws.com on
master/slaves files, and start the accumulo, I've got an error on logs:

"You must set HADOOP_PREFIX"

But echo $HADOOP_PREFIX is returning the correct installation directory of
hadoop.

On hadoop core-site.xml

<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>

Thanks in advance.



--
View this message in context: http://apache-accumulo.1065345.n5.nabble.com/Failed-to-connect-to-server-tp8484p8518.html
Sent from the Developers mailing list archive at Nabble.com.

Re: Failed to connect to server

Posted by Sean Busbey <bu...@cloudera.com>.
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 <es...@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.
>