cassandra « cassandra « Java Database Q&A





1. Java error: Bad version number in .class file error when trying to run Cassandra on OS X    stackoverflow.com

I am trying to get Cassandra to work on OS X. When I run bin/cassandra, I get the following error:

~/apache-cassandra-incubating-0.4.1-src > bin/cassandra -f
Listening for transport dt_socket at address: 8888
Exception in thread ...

2. Why was Cassandra written in Java?    stackoverflow.com

Question about Cassandra

Why the hell on earth would anybody write a database ENGINE in Java ?
I can understand why you would want to have a Java ...

3. Best architecture for a social media app    stackoverflow.com

Im working on promising project that develops a new social media app for web and mobile. We have just started defining functionalities. Nevertheless, I'm thinking ahead on architecture. So I'm asking: 1 ...

4. How to convert a Java Long to byte[] for Cassandra?    stackoverflow.com

Lazy programmer alert. :) Cassandra stores column values as bytes (Java example). Specifying a LongType comparator compares those bytes as a long. I want the value ...

5. What is the best way to map Java objects to the Cassandra data store?    stackoverflow.com

I'm getting started with Cassandra, and have been using the Hector Java library, which seems to be the most popular at the moment. I'm trying to figure out how best to expose ...

6. what is the best api/library for java to use cassandra?    stackoverflow.com

I'm looking for an api with the following requirements 1) It's simple to use and is concise. It is not bloated. 2) Works with Spring way of doing things, or is at least ...

7. How can I start Apache Cassandra programmatically    stackoverflow.com

Hi I want to embed Apache Cassandra in my Java program, how can I start it programmatically?

8. cassandra.bat throws java.io.IOException: rename failed of LocationInfo-e -1-Data.db in 0.7rc1    stackoverflow.com

I've followed the Getting Started instructions for single node and it worked fine in cassandra-0.7beta2. But when trying to do the same for cassandra-0.7rc1 it spews out the following stack trace:

 ...

9. How to programatically add index to Cassandra 0.7    stackoverflow.com

I tried to run the demo on http://www.riptano.com/blog/whats-new-cassandra-07-secondary-indexes programatically, but the results are different from running it in CLI. It seems like Cassandra can only index columns after index ...





10. Where is apache-cassandra-x.x.x.jar in lib?    stackoverflow.com

I was reading somewhere that in order to use the org.apache.cassandra classes in my java project I need to import the apache-cassandra-x.x.x.jar in my java project CLASSPATH but I was unable ...

11. Apache Cassandra starting problem    stackoverflow.com

I am trying some Apache Cassandra examples and could run the server by calling the cassandra.bat file before. I didn't change anything deliberately, but now, Cassandra will not start. I searched the ...

12. Cassandra Cannot locate storage-conf.xml    stackoverflow.com

I was trying to start Cassandra on FreeBSD with /usr/local/share/cassandra/bin/cassandra. But it gives me the following error messages, any idea how to get around the problem? Any suggestions will be GREATLY appreciated. ...

13. Cassandra -- nodetool is not working on another machine?    stackoverflow.com

I have a cassandra cluster on 4 nodes (each running ubuntu 10.04 and cassandra 0.7.4). All nodes are connected using a SWITCH, and each is assigned a STATIC IP ADDRESS (no DNS ...

14. Cassandra = Memory/Encoding-Footprint of Keys (Hash/Bytes[]=>Hex=>UTF16=>Bytes[])    stackoverflow.com

I am trying to understand the implications of using an MD5 Hash as Cassandra Key, in terms of "memory/storage consumption":

  1. MD5 Hash of my content (in Java) = byte[] is 16 bytes ...

15. Problem with apache-cassandra 0.8.2    stackoverflow.com

I want to integrate apache-Cassandra as my Database. I have downloaded 0.8.2 version of it. But it seems that there is having lots of changes made in this version. When I ...

16. UnavailableException() in Apache-Cassandra 0.8.2    stackoverflow.com

I new to Apache-Cassandra 0.8.2. I am trying to insert some data but getting this exception.

Exception in thread "main" UnavailableException()
    at org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:14902)
    at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:858)
  ...





17. problem on starting cassandra    stackoverflow.com

I download apache-cassandra-0.8.5 for ubuntu and extract it.I read the readme file. I try bellow command in shell:

bin/cassandra -f
But it said: Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: ...

18. Accumulate data for batch updates and send it after passing threshold limits of size or after timed duration?    stackoverflow.com

Is it a good strategy to accumulate in webserver memory upto a specific limit of data over time that is being written to the database & send it as batch updates ...

19. Cassandra issue when counting millions of columns    stackoverflow.com

I was inserting columns to row, and by cassandra-cli checking qty of them: [default@CassandraExample] count admins[ascii('0')]; 492506 columns [default@CassandraExample] count admins[ascii('0')]; 531375 columns [default@CassandraExample] count admins[ascii('0')]; 556985 columns [default@CassandraExample] count admins[ascii('0')]; 615568 columns [default@CassandraExample] count admins[ascii('0')]; 740790 columns [default@CassandraExample] count admins[ascii('0')]; 794993 columns [default@CassandraExample] ...

20. cassandra best practice in updating all related (super) column families    stackoverflow.com

Take twissandra as an example, when a new tweet is received, not only the column family for the tweet need to be updated, but a few other (super) column families need ...

21. Realm for Cassandra DB to implement container managed security    stackoverflow.com

I need to create a realm for Cassandra DB (similar to the JDBC realm) to implement container managed security for an application. Can someone point how to do that perhaps by ...