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 5EA0D10A40 for ; Mon, 28 Oct 2013 22:44:32 +0000 (UTC) Received: (qmail 60589 invoked by uid 500); 28 Oct 2013 22:44:30 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 60526 invoked by uid 500); 28 Oct 2013 22:44:29 -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 60408 invoked by uid 99); 28 Oct 2013 22:44:29 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 22:44:29 +0000 Received: from localhost (HELO mail-wi0-f177.google.com) (127.0.0.1) (smtp-auth username phunt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 22:44:28 +0000 Received: by mail-wi0-f177.google.com with SMTP id f4so444261wiw.16 for ; Mon, 28 Oct 2013 15:44:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=1mZYxMA62NiPEYtAr2c8QfFBdmUJun/HfWzk2MfeA1E=; b=mw3oC3wIL7Mnyh3gBWLFOKEwQbQ6DDL6JYy3f4VtNyyFs0AkB1G1OOI/zZJvdZEcfP 7IYAV7LAtY+cmcuSA1Sv+KKmwsKy7soKK/mZuhWgv9e8JT7XShiR0QhiCBJ1bJ85K9et tUqvYMnaHwwwWrSA87IS65GqKGoWbOg7yJlDHq2/l3p9v9wCysrKezgVMq8DyaFypa6/ kKai+WDHF6T/pXf2MRIvBPGoN1oQK3Y5ziO/oNpAHVF7Q4R55oBLUy5j1QvZ5xrrxFWo 7cc2jPdfbOmWs5xtBdlIvs6HWJHwFbwXVOEu8Chu8JXRWybQPH4GHUNRT6TaAhAMQsvy 7XPw== X-Received: by 10.180.12.14 with SMTP id u14mr10869952wib.63.1383000266919; Mon, 28 Oct 2013 15:44:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.152.193 with HTTP; Mon, 28 Oct 2013 15:44:06 -0700 (PDT) In-Reply-To: References: From: Patrick Hunt Date: Mon, 28 Oct 2013 15:44:06 -0700 Message-ID: Subject: Re: zkConsole not returning results basis on my command To: UserZooKeeper Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable edit your log4j.properties file, should be in conf directory (depending how you're running) Patrick On Mon, Oct 28, 2013 at 3:30 PM, Techy Teck wrote= : > @Patrick: How do I enable TRACE level logging as it is working fine in > windows command prompt but not in cygwin somehow...? > > > > On Mon, Oct 28, 2013 at 3:29 PM, Techy Teck wro= te: > >> Yeah.. It works fine in windows command prompt.. But not in cygwin? Any >> thoughts? >> >> >> On Mon, Oct 28, 2013 at 2:36 PM, Camille Fournier wr= ote: >> >>> Not obviously... I can do this just fine, although I'm not using cygwin >>> but >>> instead using zkCli.cmd and zkServer.cmd (which are the windows command >>> lines). If you use windows command lines vs cygwin, does it work? >>> >>> >>> >>> On Mon, Oct 28, 2013 at 4:13 PM, Techy Teck >>> wrote: >>> >>> > I started my Zookeeper on my cygwin console like this and it got >>> started >>> > successfully - >>> > >>> > username@00542612 ~ >>> > $ zkServer.sh start >>> > JMX enabled by default >>> > Using config: C:\ApacheZookeeper\zookeeper-3.4.5\conf\zoo.cfg >>> > Starting zookeeper ... STARTED >>> > >>> > Now, after connecting to ZooKeeper. I opened a new Cygwin window, and >>> issue >>> > the following command >>> > >>> > $ zkCli.sh >>> > >>> > which will connect to ZooKeeper server running at localhost:2181 by >>> > default, and will open zk console. And this is what I got on the >>> console. >>> > And I believe till now everything is fine - >>> > >>> > >>> > username@00542612 ~ >>> > $ zkCli.sh >>> > Connecting to localhost:2181 >>> > 2013-10-28 12:56:34,958 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:zookeeper.version=3D3.4.5-1392090, built on 09/30/2012 17= :52 >>> GMT >>> > 2013-10-28 12:56:34,961 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:host.name=3D00542612.corp.host.com >>> > 2013-10-28 12:56:34,961 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:java.version=3D1.6.0_26 >>> > 2013-10-28 12:56:34,962 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:java.vendor=3DSun Microsystems Inc. >>> > 2013-10-28 12:56:34,962 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:java.home=3DC:\Java\jdk1.6.0_26\jre >>> > 2013-10-28 12:56:34,963 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > >>> > >>> environment:java.class.path=3DC:\ApacheZookeeper\zookeeper-3.4.5\build\= classes;C:\ApacheZookeeper\zookeeper-3.4.5\build\lib\*.jar;C:\ApacheZookeep= er\zookeeper-3.4.5\lib\slf4j-log4j12-1.6.1.jar;C:\ApacheZookeeper\zookeeper= -3.4.5\lib\slf4j-api-1.6.1.jar;C:\ApacheZookeeper\zookeeper-3.4.5\lib\netty= -3.2.2.Final.jar;C:\ApacheZookeeper\zookeeper-3.4.5\lib\log4j-1.2.15.jar;C:= \ApacheZookeeper\zookeeper-3.4.5\lib\jline-0.9.94.jar;C:\ApacheZookeeper\zo= okeeper-3.4.5\zookeeper-3.4.5.jar;C:\ApacheZookeeper\zookeeper-3.4.5\src\ja= va\lib\*.jar;C:\ApacheZookeeper\zookeeper-3.4.5\conf;C;C:\Program >>> > Files (x86)\IBM\RationalSDLC\ClearQuest\cqjni.jar >>> > 2013-10-28 12:56:34,963 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > >>> > >>> environment:java.library.path=3DC:\Java\jdk1.6.0_26\bin;C:\WINDOWS\Sun\= Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\cygwin\usr\local\bin;C:\cygwin\b= in;C:\MinGW\msys\1.0\bin;C:\MinGW\bin;C:\Java\jdk1.6.0_26\bin;C:\cygwin\bin= ;C:\cygwin\etc\alternatives;C:\Program >>> > Files (x86)\DataStax >>> > >>> > >>> Community\python;C:\Users\username\openssl\bin;C:\Python27;C:\Python27\= Scripts;D:\app\username\product\11.1.0\db_1\bin;C:\apache-maven-3.0.4-bin\a= pache-maven-3.0.4\bin;C:\Program >>> > Files >>> > >>> > >>> (x86)\IBM\RationalSDLC\Clearquest\cqcli\bin;C:\Perl64\bin;C:\WINDOWS\sy= stem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPower= Shell\v1.0;C:\Perl64\bin;C:\Program >>> > Files (x86)\Perforce;C:\Program Files >>> > (x86)\IBM\RationalSDLC\ClearCase\bin;C:\Program Files >>> > >>> > >>> (x86)\IBM\RationalSDLC\common;D:\ede-5.1.1\apache-ant-1.7.1.2008.06.27\= bin;C:\Program >>> > Files (x86)\Git\cmd;C:\Program Files\Common Files\Hitachi >>> > ID;C:\ApacheZookeeper\zookeeper-3.4.5\bin;%APPDATA%\Python\Scripts;. >>> > 2013-10-28 12:56:34,963 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:java.io.tmpdir=3DC:\cygwin\tmp\ >>> > 2013-10-28 12:56:34,964 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:java.compiler=3D >>> > 2013-10-28 12:56:34,964 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:os.name=3DWindows 7 >>> > 2013-10-28 12:56:34,965 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:os.arch=3Damd64 >>> > 2013-10-28 12:56:34,965 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:os.version=3D6.1 >>> > 2013-10-28 12:56:34,965 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:user.name=3Dusername >>> > 2013-10-28 12:56:34,966 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:user.home=3DC:\Users\username >>> > 2013-10-28 12:56:34,966 [myid:] - INFO [main:Environment@100] - >>> > Client >>> > environment:user.dir=3DC:\cygwin\home\username >>> > 2013-10-28 12:56:34,968 [myid:] - INFO [main:ZooKeeper@438] - >>> > Initiating client connection, connectString=3Dlocalhost:2181 >>> > sessionTimeout=3D30000 >>> > watcher=3Dorg.apache.zookeeper.ZooKeeperMain$MyWatcher@48b8f82d >>> > Welcome to ZooKeeper! >>> > 2013-10-28 12:56:35,019 [myid:] - INFO [main-SendThread( >>> > 127.0.0.1:2181 >>> > ):ClientCnxn$SendThread@966] - Opening socket connection to server >>> > 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL >>> > (Unable to locate a login configuration) >>> > JLine support is enabled >>> > 2013-10-28 12:56:35,021 [myid:] - INFO [main-SendThread( >>> > 127.0.0.1:2181 >>> > ):ClientCnxn$SendThread@849] - Socket connection established to >>> > 127.0.0.1/127.0.0.1:2181, initiating session >>> > 2013-10-28 12:56:35,047 [myid:] - INFO [main-SendThread( >>> > 127.0.0.1:2181 >>> > ):ClientCnxn$SendThread@1207] - Session establishment complete on >>> server >>> > 127.0.0.1/127.0.0.1:2181, sessionid =3D 0x14200a378c30000, negotiated >>> > timeout >>> > =3D 30000 >>> > >>> > WATCHER:: >>> > >>> > WatchedEvent state:SyncConnected type:None path:null >>> > [zk: localhost:2181(CONNECTED) 0] >>> > >>> > >>> > Now I was trying to do `ls /` to see how many nodes I have in general >>> or I >>> > also trying using help command and then press enter key but nothing i= s >>> > happening on my console - >>> > >>> > See below - >>> > >>> > WatchedEvent state:SyncConnected type:None path:null >>> > [zk: localhost:2181(CONNECTED) 0] ls / >>> > >>> > >>> > After writing `ls /` and I pressed enter, nothing showed up in my >>> console >>> > and same with `help` as well... This is my first time working with >>> > Zookeeper.. Does anyone know what wrong I am doing here? >>> > >>> >> >>