Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5CFA182D6 for ; Thu, 7 Jan 2016 14:41:10 +0000 (UTC) Received: (qmail 52434 invoked by uid 500); 7 Jan 2016 14:41:09 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 52376 invoked by uid 500); 7 Jan 2016 14:41:09 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 52364 invoked by uid 99); 7 Jan 2016 14:41:09 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2016 14:41:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E88AAC0D31 for ; Thu, 7 Jan 2016 14:41:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3AYIMSablDJK for ; Thu, 7 Jan 2016 14:40:59 +0000 (UTC) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 966CC231B5 for ; Thu, 7 Jan 2016 14:40:54 +0000 (UTC) Received: by mail-ig0-f175.google.com with SMTP id z14so53079298igp.0 for ; Thu, 07 Jan 2016 06:40:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KqxTVfTpyCTGMJqOK3BFgYnuOyGVYZOAiGIeBVIWrDU=; b=lSgCTYz68AVSzLSpc3aIyh9J1Tu+SEfDBlvrZe2bWdvUvLH99x9aoqlLJBw3yaZ4fV dU1/+itFd+go0n720erOxqono03Itx/Lnji7MxT8jJUUL4cBpYyuwKzAxXhaZPZzuzOv 1yOFDbq+RgxBr9bwEUlbgxUeULaWw4XTPrP3b4dJ5fVRkK44zenSQVI1jnsVhSVrTaHA F/gpnGO8Q4KrPEpcUdxt6mC4brSXFFtADjBFwsczzVktkA0enTADtEw99RdNcrP8RXM1 J9Sz2tk5BE3LHT8oi0kkj6Rp3cAAst+K2K7sdBd8Oliw32Ndx0RI/HeQm4LQj8Fw2h+/ 8A6A== MIME-Version: 1.0 X-Received: by 10.50.143.39 with SMTP id sb7mr7474880igb.37.1452177654059; Thu, 07 Jan 2016 06:40:54 -0800 (PST) Received: by 10.79.70.135 with HTTP; Thu, 7 Jan 2016 06:40:53 -0800 (PST) In-Reply-To: References: Date: Thu, 7 Jan 2016 11:40:53 -0300 Message-ID: Subject: Re: Zookeeper without JMX ? From: Jorge Fonseca To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a1134b42c389b6e0528bf75c6 --001a1134b42c389b6e0528bf75c6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C2=B4m afraid too :) Probably there is not a quick solution !!!! :( thanks again. Best Regards, Jorge. 2016-01-06 15:39 GMT-03:00 Chris Nauroth : > 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" 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 : > > > >> 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 : > >> > >>> 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 proble= m > >>>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 > 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 J= MX > >>> > technology? Or Zookeeper is fully-dependent of this technology? > >>> > > >>> > > >>> > Best regards ! > >>> > Jorge. > >>> > >>> > >> > > --001a1134b42c389b6e0528bf75c6--