this is a multinode cluster - but I was testing with a zookeeper running on the 
same node as the master. I might have missed the point that there has to be a 
quorum - that would mean I need 3 zookeepers to run. I will try with that. 
Thanks a lot to point that out. 

Date: Thu, 22 Nov 2012 14:30:44 -0500
Subject: Re: tserver not able to connect
From: [email protected]
To: [email protected]

Is this a single node instance or a cluster? If cluster, and using multiple 
zookeepers, make sure you have them configured together as a quorum and have 
then listed properly in the accumulo-site.xml. 
Also, this may be a stupid question, but did you initialize accumulo? 
Sent from my phone, pardon the typos and brevity.
On Nov 22, 2012 2:11 PM, "Ranjan Sen" <[email protected]> wrote:












Hiá
I have the following connection refused problem when a tserver is trying to 
connect to master.á
I checked the ip:port for the services as follows:á

log from tserver:á22 17:56:51,289 [ipc.Client] INFO : Retrying connect to 
server: ip-10-145-140-125.ec2.internal/10.145.140.125:9000. Already tried 9 
time(s).
22 17:56:51,292 [logger.LogService] FATAL: Failed to initialize log service 
args=[--address, ip-10-35-77-90.ec2.internal]java.lang.RuntimeException: 
Accumulo not initialized, there is no instance id at /accumulo/instance_id
á á á á at 
org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceIDFromHdfs(ZooKeeperInstance.java:272)á
 á á á at 
org.apache.accumulo.server.conf.ZooConfiguration.getInstance(ZooConfiguration.java:65)
á á á á at 
org.apache.accumulo.server.conf.ServerConfiguration.getZooConfiguration(ServerConfiguration.java:49)á
 á á á at 
org.apache.accumulo.server.conf.ServerConfiguration.getSystemConfiguration(ServerConfiguration.java:58)
á á á á at 
org.apache.accumulo.server.client.HdfsZooInstance.<init>(HdfsZooInstance.java:62)á
 á á á at 
org.apache.accumulo.server.client.HdfsZooInstance.getInstance(HdfsZooInstance.java:70)
á á á á at org.apache.accumulo.server.Accumulo.init(Accumulo.java:132)á á á á 
at org.apache.accumulo.server.logger.LogService.<init>(LogService.java:142)á á 
á á at org.apache.accumulo.server.logger.LogService.main(LogService.java:128)
á á á á at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)á á á á 
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)á 
á á á at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
á á á á at java.lang.reflect.Method.invoke(Method.java:616)á á á á at 
org.apache.accumulo.start.Main$1.run(Main.java:89)á á á á at 
java.lang.Thread.run(Thread.java:679)Caused by: java.net.ConnectException: Call 
to ip-10-145-140-125.ec2.internal/10.145.140.125:9000 failed on connection 
exception: java.net.ConnectException: Connection refused
á á á á at org.apache.hadoop.ipc.Client.wrapException(Client.java:1099)á á á á 
at org.apache.hadoop.ipc.Client.call(Client.java:1075)á á á á at 
org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
á á á á at $Proxy1.getProtocolVersion(Unknown Source)á á á á at 
org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)á á á á at 
org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)á á á á at 
org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119)
á á á á at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:238)á á á á 
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:203)á á á á at 
org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
á á á á at 
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386)á á á á 
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)á á á á at 
org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404)
á á á á at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)á á á á at 
org.apache.hadoop.fs.FileSystem.get(FileSystem.java:123)á á á á at 
org.apache.accumulo.core.file.FileUtil.getFileSystem(FileUtil.java:554)
á á á á at 
org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceIDFromHdfs(ZooKeeperInstance.java:258)á
 á á á ... 14 moreCaused by: java.net.ConnectException: Connection refused
á á á á at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)á á á á at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592)á á á á 
at 
org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
á á á á at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489)

The netstat listing is
2012-11-22 18:55:29,828 [myid:] - INFO 
á[main-EventThread:ClientCnxn$EventThread@511] - EventThread shut down
ubuntu@ip-10-145-140-125:/opt/zookeeper$ netstat -pnl(Not all processes could 
be identified, non-owned process infoáwill not be shown, you would have to be 
root to see it all.)Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address á á á á á Foreign Address á á á á State á á á 
PID/Program nametcp á á á á0 á á á0 0.0.0.0:50060 á á á á á 0.0.0.0:* á á á á á 
á á LISTEN á á á1610/java á á áá
tcp á á á á0 á á á0 127.0.0.1:59661 á á á á 0.0.0.0:* á á á á á á á LISTEN á á 
á1610/java á á áátcp á á á á0 á á á0 0.0.0.0:50030 á á á á á 0.0.0.0:* á á á á 
á á á LISTEN á á á1455/java á á áá
tcp á á á á0 á á á0 0.0.0.0:39123 á á á á á 0.0.0.0:* á á á á á á á LISTEN á á 
á1740/java á á áátcp á á á á0 á á á0 0.0.0.0:50070 á á á á á 0.0.0.0:* á á á á 
á á á LISTEN á á á1050/java á á áá
tcp á á á á0 á á á0 0.0.0.0:22 á á á á á á á0.0.0.0:* á á á á á á á LISTEN á á 
á- á á á á á á áátcp á á á á0 á á á0 0.0.0.0:35159 á á á á á 0.0.0.0:* á á á á 
á á á LISTEN á á á1367/java á á áá
tcp á á á á0 á á á0 0.0.0.0:50010 á á á á á 0.0.0.0:* á á á á á á á LISTEN á á 
á1199/java á á áátcp á á á á0 á á á0 0.0.0.0:33786 á á á á á 0.0.0.0:* á á á á 
á á á LISTEN á á á1050/java á á áá
tcp á á á á0 á á á0 0.0.0.0:50075 á á á á á 0.0.0.0:* á á á á á á á LISTEN á á 
á1199/java á á áátcp á á á á0 á á á0 0.0.0.0:49500 á á á á á 0.0.0.0:* á á á á 
á á á LISTEN á á á1199/java á á áá
tcp á á á á0 á á á0 0.0.0.0:50020 á á á á á 0.0.0.0:* á á á á á á á LISTEN á á 
á1199/java á á áátcp á á á á0 á á á0 0.0.0.0:2181 á á á á á á0.0.0.0:* á á á á 
á á á LISTEN á á á1740/java á á áá
tcp á á á á0 á á á0 0.0.0.0:53383 á á á á á 0.0.0.0:* á á á á á á á LISTEN á á 
á1455/java á á áátcp á á á á0 á á á0 10.145.140.125:9000 á á 0.0.0.0:* á á á á 
á á á LISTEN á á á1050/java á á áá
tcp á á á á0 á á á0 10.145.140.125:9001 á á 0.0.0.0:* á á á á á á á LISTEN á á 
á1455/java á á áátcp á á á á0 á á á0 0.0.0.0:50090 á á á á á 0.0.0.0:* á á á á 
á á á LISTEN á á á1367/java á á áá
tcp6 á á á 0 á á á0 :::22 á á á á á á á á á :::* á á á á á á á á á áLISTEN á á 
á- á á á á á á ááudp á á á á0 á á á0 0.0.0.0:68 á á á á á á á0.0.0.0:* á á á á 
á á á á á á á á á - á á á á á á áá
Active UNIX domain sockets (only servers)Proto RefCnt Flags á á á Type á á á 
State á á á á I-Node á PID/Program name á áPathunix á2 á á á[ ACC ] á á STREAM 
á á LISTENING á á 5594 á á - á á á á á á á á á @/com/ubuntu/upstart
unix á2 á á á[ ACC ] á á SEQPACKET áLISTENING á á 1824 á á - á á á á á á á á á 
@/org/kernel/udev/udevdunix á2 á á á[ ACC ] á á STREAM á á LISTENING á á 6318 á 
á - á á á á á á á á á /var/run/dbus/system_bus_socket
ubuntu@ip-10-145-140-125:/opt/zookeeper$á
                                          
                                          

Reply via email to