cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Héctor Izquierdo Seliva <izquie...@strands.com>
Subject Re: Cassandra monitoring tool
Date Tue, 12 Apr 2011 17:42:24 GMT
El mar, 12-04-2011 a las 21:24 +0500, Ali Ahsan escribió:
> Thanks for sharing this info,I am getting following error,Can please be 
> more specific how can i run this
> 
> 
> java -cp 
> /home/ali/apache-cassandra-0.6.3/lib/simple-cassandra-monitoring-1.0.jar 
> 127.0.0.1 ks1:cf1,ks1:cf2
> Exception in thread "main" java.lang.NoClassDefFoundError: 127/0/0/1
> Caused by: java.lang.ClassNotFoundException: 127.0.0.1
>      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:321)
>      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>      at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: 127.0.0.1. Program will exit.
> 
> 
>                                                                          
>          OR
> 
> java -jar 
> /home/ali/apache-cassandra-0.6.3/lib/simple-cassandra-monitoring-1.0.jar  localhost 
> ks1:cf1,ks1:cf2
> 
> Failed to load Main-Class manifest attribute from
> /home/ali/apache-cassandra-0.6.3/lib/simple-cassandra-monitoring-1.0.jar
> 
> 

Hi Ali. You should run it like this

java -cp "/home/ali/apache-cassandra-0.6.3/lib/*"
com.google.code.scm.CassandraMonitoring localhost ks1:cf1,ks2:cf2,etc

I forgot to mention it has been coded against 0.7.x, and I'm not sure it
will work on 0.6.x. I'll try to add support for both 0.6.x and the new
0.8.x version as soon as possible.

> 
> On 04/12/2011 07:26 PM, Héctor Izquierdo Seliva wrote:
> > Hi everyone.
> >
> > Looking for ways to monitor cassandra with zabbix I could not found
> > anything that was really usable, till I found mention of a nice class by
> > smeet. I have based my modification upon his work and now I give it back
> > to the community.
> >
> > Here's the project url:
> >
> > http://code.google.com/p/simple-cassandra-monitoring/
> >
> > It allows to get statistics for any Keyspace/ColumnFamily you want. To
> > start it just build the jar, and launch it using as classpath your
> > cassandra installation lib folder.
> >
> > The first parameter is the node host name. The second parameter is a
> > comma separated list of KS:CF values. For example:
> >
> > java -cp blablabla localhost ks1:cf1,ks1:cf2.
> >
> > Then point curl to http://localhost:9090/ks1/cf1 and some basic stats
> > will be displayed.
> >
> > You can also point to http://localhost:9090/nodeinfo to get some info
> > about the server.
> >
> > If you have any suggestion or improvement you would like to see, please
> > contact me and I will be glad to work on it. Right now it's a bit rough,
> > but it gets the job done.
> >
> > Thanks for your time!
> >
> >
> >
> 
> 



Mime
View raw message