Thanks Chris. You are correct - android does not support JMX packages.
The main idea is embed zoo Client and Server in Android devices...Its a research project involves Mobile Distribuited CEP ! I´m afraid too :) Probably there is not a quick solution !!!! :( thanks again. Best Regards, Jorge. 2016-01-06 15:39 GMT-03:00 Chris Nauroth <[email protected]>: > Hello Jorge, > > Can you please clarify if it's the ZooKeeper client side or server side > that you're interested in? I assume it's the client side, because an > ensemble deployed to Android devices would likely be very unreliable, but > I want to make sure we understand. > > I'm not familiar with Android development myself, but a quick Google > search shows that the entire javax.management package is missing on the > Dalvik VM. > > http://developer.android.com/reference/packages.html > > > That would imply that any reference to javax.management classes from > within ZooKeeper code would trigger a NoClassDefFoundError. Is that what > you're seeing? > > If so, then I'm afraid there is likely no quick solution. As Flavio said, > javax.management is used throughout the ZooKeeper code, and we don't have > any kind of mode that would completely "skip over" those class references. > There are various options for controlling JMX on the server side through > environment variables to enable local access only vs. a remote port, SSL, > authentication, etc. (See bin/zkServer.sh.) However, I have a feeling > this is not really what you're requesting. > > --Chris Nauroth > > > > > On 1/6/16, 6:18 AM, "Jorge Fonseca" <[email protected]> wrote: > > >Flavio, > > > >I just studied the zookeeper code, and see that JMX is embedded in the > >code... However, a hope "appears" when a read "*JMX - how to enable JMX in > >ZooKeeper*" in the zoo docs. I thought: if there is how to enable it, > >problably there is how to disable :) > > > > > >Jorge. > > > >2016-01-06 11:08 GMT-03:00 Jorge Fonseca <[email protected]>: > > > >> Thanks Flavio ! > >> > >> For example, If i want to execute a zookeeper app in a limited mobile > >> environment (like Android) that does not support JMX. Is it possible? > >> > >> Jorge. > >> > >> > >> 2016-01-06 10:59 GMT-03:00 Flavio Junqueira <[email protected]>: > >> > >>> Hi Jorge, > >>> > >>> The short answer is that it is fairly embedded in the code, but I can > >>> really interpret your question in two ways: you're having some problem > >>>with > >>> jmx or you want to use something else to monitor your zookeeper > >>>ensemble. > >>> Perhaps you can give some more detail about the problem you're trying > >>>to > >>> solve so that we can help you out here. > >>> > >>> -Flavio > >>> > >>> > On 06 Jan 2016, at 13:50, Jorge Fonseca <[email protected]> > wrote: > >>> > > >>> > Hi All, > >>> > > >>> > Have a nice new year :) > >>> > A simple and direct question. > >>> > > >>> > Is it possible to port zookeeper to a platform that does not have JMX > >>> > technology? Or Zookeeper is fully-dependent of this technology? > >>> > > >>> > > >>> > Best regards ! > >>> > Jorge. > >>> > >>> > >> > >
