Is that a common practice to restart zookeeper or I have some wrong settings?

1,857 views
Skip to first unread message

Sergey

unread,
Apr 17, 2013, 12:13:52 PM4/17/13
to storm...@googlegroups.com
Hi everybody,

I'm doing simple typologies in Storm. And so far I have one issue. I can run my topology with ether:

storm jar target/storm-counter-0.0.1-SNAPSHOT.jar TopologyMain
or
 mvn exec:java -Dexec.mainClass="TopologyMain"

Both work fine, but sometimes when I run it, I get an error:

 2235 [Thread-6-EventThread] INFO  com.netflix.curator.framework.state.ConnectionStateManager  - State change: SUSPENDED
2236 [ConnectionStateManager-0] WARN  com.netflix.curator.framework.state.ConnectionStateManager  - There are no ConnectionStateListeners registered.
2238 [Thread-6-EventThread] WARN  backtype.storm.cluster  - Received event :disconnected::none: with disconnected Zookeeper.
3701 [Thread-6-SendThread(localhost:2000)] WARN  org.apache.zookeeper.ClientCnxn  - Session 0x13e18bdb0ae000b for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused

Than I restart zookeeper:

 sudo service zookeeper-server restart

And it works again. 
I think there is something wrong, I attached zoo.cfg and storm.yaml 


storm.yaml
zoo.cfg

Viral Bajaria

unread,
Apr 17, 2013, 3:28:15 PM4/17/13
to storm...@googlegroups.com
You should check your zk logs and see if the process died with an exception or if it just stopped accepting connections. If it was latter then bump up your client connections from 50 to 100 or even higher.

If there is no exception in the logs, see if the process is running or not. If it is running, try adding some GC logging (though I doubt this will be the issue)

Can you pastebin your zk logs ?

-Viral






--
You received this message because you are subscribed to the Google Groups "storm-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to storm-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

ser...@openbridge.com

unread,
Apr 17, 2013, 9:23:14 PM4/17/13
to storm...@googlegroups.com
It works!

Thank you so much! client connections helped a lot! I haven't even check Garbage Collection. 
Reply all
Reply to author
Forward
0 new messages