Re: Lucandra or some way to query

2010-04-14 Thread Jesus Ibanez
I will explore Lucandra a little more and if I can't get it to work today, I will go for Option 2. Using SQL will not be efficient in the future, if my website grows. Thenks for your answer Eric! Jesús. 2010/4/14 Eric Evans > On Wed, 2010-04-14 at 06:45 -0300, Jesus Ibanez wrote: &g

Lucandra or some way to query

2010-04-14 Thread Jesus Ibanez
Hello. I need to know how to search in Cassandra. I could save the data in different ways so I can then retrive it like for example this: get keyspace.users['123'] => (column=name, value=John, timestamp=xx) get keyspace.searchByName['John'] => (column=userID, value=123, timestamp=xxx

Re: Auto Increament

2010-03-24 Thread Jesus Ibanez
e: Sorry for my english. Greetings! 2010/3/24 Erik Holstad > > > On Wed, Mar 24, 2010 at 11:00 AM, Jesus Ibanez wrote: > >> You can generate UUIDs based on time with http://jug.safehaus.org/ if you >> use Java. And its easy to use, just have to insert o

Re: Auto Increament

2010-03-24 Thread Jesus Ibanez
You can generate UUIDs based on time with http://jug.safehaus.org/ if you use Java. And its easy to use, just have to insert one line: UUID uuid = UUIDGenerator.getInstance().generateTimeBasedUUID(); Maybe a solution to your cuestion: To "replace" the autoincrement of MySQL, you can create a colu

Re: Insert from java Servlet

2010-03-21 Thread Jesus Ibanez
Fixed! The problem was that I was importing the necessary libs (from Tomcat and Cassandra) from its original folders. The solution was to copy the libs into WEB-INF\lib. Greetins. Jesús. 2010/3/22 Jesus Ibanez > Hello all! > > I am trying to insert some data into a column from a jav

Insert from java Servlet

2010-03-21 Thread Jesus Ibanez
Hello all! I am trying to insert some data into a column from a java servlet (the name of the servlet is Save) but when I run it, tomcat gives me this error: Mar 21, 2010 11:25:12 PM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet Save as unavailable Mar 21, 2010 11:25:12 PM

Re: Running on Windows

2010-03-15 Thread Jesus Ibanez
we have to modify the cassandra-cli.bat file. :) 2010/3/16 Jonathan Ellis > Your time on IRC would have been a lot more productive if you had > mentioned that bin\cassandra was working fine and you were stuck on > the cli. :( > > On Mon, Mar 15, 2010 at 11:41 PM, Jesus Ibanez >

Running on Windows

2010-03-15 Thread Jesus Ibanez
To run Cassandra on Windows, after executing bin\cassandra without problems, we need to insert the line if NOT DEFINED CASSANDRA_HOME set CASSANDRA_HOME=%CD% into the cassandra-cli.bat file before we execute it. That line is missing in cassandra-cli.bat, so add it and Cassandra will execute perfect

Windows 7

2010-03-15 Thread Jesus Ibanez
Hi, I can't run Cassandra on Windows 7. After executing bin\cassandra -f, it gets freez with the output: INFO - Starting up server gossip And when I excecute bin\cassandra-cli -host localhost, the output is: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/cassandra/cli/Cli