Have anyone tried using Play framework(2.0.4) application with connect to cassandra db via kundera? I want to implement Zookeeper on top of cassandra DB. Have anyone tried combining them before?
I guess integration with play framework via Kundera is possible. Implementing zookeeper on top of cassandra is also possible, i guess. Did you look into cage API for this?
-Vivek
Related
I am new to cassandra. I would like to know how can I connect to a Cassandra DB from PHP. I am looking to use this for a very high traffic website. Will thrift be the best option? Or can I connect using some other method efficiently?
Kindly let me know.
You should use the DataStax Cassandra PHP Driver. You should not use thrift.
In order to configure kundera for Cassandra, I notice there are 3 possible options for kundera.client.lookup.class as below
com.impetus.client.cassandra.pelops.PelopsClientFactory
com.impetus.kundera.client.cassandra.dsdriver.DSClientFactory
com.impetus.client.cassandra.thrift.ThriftClientFactory
I am not sure of the Pros and Cons of the above 3 and hence not sure which one to use. Please help me decide
I suggest you to use com.impetus.client.cassandra.thrift.ThriftClientFactory. It is the implementation using just Cassandra's thrift api.
PelopsClient is not in active development.
DSClient is built over datastax driver of cassandra.
There is no real advantage of using either DSClient or ThriftClient.
After further research, I found the following
Don't use PelopsClient as its not in active development as mentioned by #karthik , but more importantly because of the issue reported here
Data Stax Driver is better than thrift client as it over comes few limitations of thrift and they use a different binary protocol specific to cassandra which gives a better performance. Refer Datastax java driver support for Cassandra using Kundera
I am trying to learn Cassandra and have setup a 2 node Cassandra cluster. I have written a client in Java using cassandra jdbc driver, which currently connects to a hard coded single node in the cluster. Ideally, I would like my client to connect to the "cluster" rather then a specific node.
So that client code automatically connects to other node if the first node is down.
Is this possible using cassandra jdbc driver? Currently using below code to create connection
DriverManager.getConnection("jdbc:cassandra://localhost:9160/testdb");
Yes. If you're using the Datastax Java driver, you can get all of these benefits and more. From the documentation:
The driver has the following features:
connection pooling
node discovery
automatic failover
load balancing
What is your language? If you're using Java, I suggest for Hector framework.
http://hector-client.github.io/hector/build/html/index.html
I think it's very good for correspond on Cassandra db.
Can we plug into any other database other than Cassandra , as all published data goes into Cassandra ?
No. At the moment WSO2 BAM supports Cassandra by default. But, by extending the Stream Definition Store and Event Persistence interfaces another database can be integrated if required.
Can I use Apache Cassandra as a message data store for ActiveMQ?
The reason I am exploring this option is we have to have our application on cluster and provide scalability and failover :
a) KahaDb - Can be clustered but if the disk space goes out we cannot be failover.
b) MySQL / another RDBMS - point of failure is the DB.
c) Cassandra is in-memory database and also provides clustering.
Can someone help me understand if my reasons are correct and that Cassandra can help us persist message better than KahaDb,Database?
Thanks in advance.
Sandeep
Yes, it can be done. The QSandra project on GitHub has implemented an ActiveMQ message store on top of Cassandra.