zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ibrahim El-sanosi (PGR)" <i.s.el-san...@newcastle.ac.uk>
Subject RE: How to read zookeper's logs
Date Sat, 04 Oct 2014 08:23:12 GMT
Hi Evelina,

I don't use LogFormatter to read a log file, instead I use my own code to read the log. If
you want my code I can send it to you.

And if LogFormatter works with you, let me know, I want to try it.



>-----Original Message-----
>From: Evelina Dumitrescu [mailto:evelina_dumitrescu@yahoo.com.INVALID]
>Sent: 04 October 2014 00:58
>To: user@zookeeper.apache.org
>Subject: How to read zookeper's logs
>What tool can I use to read zookeper logs?I tried to use LogFormatter. When I
>run the following command, I get an error.
>java -cp ~/Downloads/zookeeper-3.4.5/build/classes/:~/Downloads/zookeeper-
>3.2.2.Final.jar  org.apache.zookeeper.server.LogFormatter
>The error is:
>Exception in thread "main" java.lang.NoClassDefFoundError:
>org/slf4j/LoggerFactory at
>d by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at
>java.net.URLClassLoader$1.run(URLClassLoader.java:217) at
>java.security.AccessController.doPrivileged(Native Method) at
>java.net.URLClassLoader.findClass(URLClassLoader.java:205) at
>java.lang.ClassLoader.loadClass(ClassLoader.java:323) at
>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at
>I am using the 3.4.5 release of zookeper.
>When I run ant, I don't get any LoggerFactory class.
>The Java version that I use is:
>java version "1.6.0_32"OpenJDK Runtime Environment (IcedTea6 1.13.4) (6b32-
>1.13.4-4ubuntu0.14.04.1)OpenJDK 64-Bit Server VM (build 23.25-b01, mixed
>I am a newbie to zookeper and I would like to know what I am doing wrong.
>Thank you,Evelina
View raw message