You can mark zookeeper instance as transient.

Thanks
Parth

From: "Nick R. Katsipoulakis" 
<[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, January 28, 2015 at 3:38 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Non-serializable objects as Bolt members

The reason I am asking is because I know that a Bolt needs to be Serializable 
and I have a feeling that a ZooKeeper object is not (I am pretty confident 
about that, since it keeps a socket connection with the zookeeper server). Can 
somebody give me more information on the topic? Also, If I go ahead and use 
something like what I described earlier, what might be the possible problems 
that I might run into? Apparently, in local mode the above works.

Reply via email to