also I am using zookeeper-3.4.3

From: [email protected]
To: [email protected]
Subject: RE: tserver not able to connect
Date: Thu, 22 Nov 2012 23:44:02 +0000





this is what i have in the zoo.cfg
syncLimit=5# the directory where the snapshot is stored.# do not use /tmp for 
storage, /tmp here is just # example sakes.dataDir=/tmp/zookeeper# the port at 
which the clients will 
connectclientPort=2181server.1=ip-10-145-140-125.ec2.internal:2888:3888server.2=ip-10-35-77-90.ec2.internal:2888:3888server.3=ip-10-98-50-4.ec2.internal:2888:3888

From: [email protected]
Date: Thu, 22 Nov 2012 18:32:53 -0500
Subject: Re: tserver not able to connect
To: [email protected]

Do you have the zookeepers listed as the hostname or just localhost in the

zoo.cfg?

On Thu, Nov 22, 2012 at 6:23 PM, John Vines <[email protected]> wrote:


Do you have the zookeepers listed as the hostname or just localhost in the 
zoo.cfg?




On Thu, Nov 22, 2012 at 6:22 PM, Ranjan Sen <[email protected]> wrote:





yes, I have all TCP, UDP ports open. 
I saw a strange thing - when I start zookeeper using bin/zkServer.sh start  i 
dont see it as a running service using netstat. when i use the zkCli.sh it 
fails with message as follows - I am wondering why is it connecting to 
127.0.0.1 ? although in my zoo.cfg I have different server ips. 



...onTimeout=30000 
watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@96fa4742012-11-22 
23:16:15,829 [myid:] - INFO  [main-SendThread():ClientCnxn$SendThread@933] - 
Opening socket connection to server /127.0.0.1:2181


Welcome to ZooKeeper!2012-11-22 23:16:15,836 [myid:] - INFO  
[main-SendThread(localhost:2181):ZooKeeperSaslClient@125] - Client will not 
SASL-authenticate because the default JAAS configuration section 'Client' could 
not be found. If you are not using SASL, you may ignore this. On the other 
hand, if you expected SASL to work, please fix your JAAS configuration.


JLine support is enabled2012-11-22 23:16:15,846 [myid:] - WARN  
[main-SendThread(localhost:2181):ClientCnxn$SendThread@1057] - Session 0x0 for 
server null, unexpected error, closing socket connection and attempting 
reconnect


java.net.ConnectException: Connection refused

From: [email protected]
Date: Thu, 22 Nov 2012 15:54:18 -0500

Subject: Re: tserver not able to connect
To: [email protected]

oh, It was hard to see on my phone. It looks like the dfs port (9000) is being 
blocked. Make ssure you have the ports allowed in EC2 configuration.





On Thu, Nov 22, 2012 at 3:38 PM, Josh Elser <[email protected]> wrote:


Running with a single ZooKeeper in standalone is not an issue. If you run 
multiple, then you need to have a quorum. 



On Thursday, November 22, 2012, Ranjan Sen <[email protected]> wrote:

> 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 more
> Caused 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 name






> tcp á á á á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 á 
> áPath






> unix á2 á á á[ ACC ] á á STREAM á á LISTENING á á 5594 á á - á á á á á á á á 
> á @/com/ubuntu/upstart
> unix á2 á á á[ ACC ] á á SEQPACKET áLISTENING á á 1824 á á - á á á á á á á á 
> á @/org/kernel/udev/udevd
> unix á2 á á á[ ACC ] á á STREAM á á LISTENING á á 6318 á á - á á á á á á á á 
> á /var/run/dbus/system_bus_socket






> ubuntu@ip-10-145-140-125:/opt/zookeeper$á
>

                                          


-- 
Cheers
~John



                                                                                
  

Reply via email to