create keyspace, table and generate tables dynamically using spark-cassandra connector

752 views
Skip to first unread message

Akshay

unread,
Jun 25, 2017, 10:57:09 AM6/25/17
to DataStax Spark Connector for Apache Cassandra
Using Cassandra, I want to create keyspace and tables dynamically using spring boot application while using spark-java connector,is this scenario possible to handle?I am trying to make a application based on spring framework,please help

Akshay

unread,
Jun 25, 2017, 11:50:26 AM6/25/17
to DataStax Spark Connector for Apache Cassandra
On Sunday, 25 June 2017 20:27:09 UTC+5:30, Akshay wrote:
> Using Cassandra, I want to create keyspace and tables dynamically using spring boot application while using spark-java connector,is this scenario possible to handle?I am trying to make a application based on spring framework,please help

basically I want to do similar we do in spring boot like below:

https://stackoverflow.com/questions/37352689/create-keyspace-table-and-generate-tables-dynamically-using-spring-data-cassanr

Varun Barala

unread,
Jun 26, 2017, 6:09:51 AM6/26/17
to spark-conn...@lists.datastax.com
Hi,

* If you just want an embedded Cassandra
http://docs.spring.io/spring-data/cassandra/docs/1.0.5.RELEASE/reference/html/cassandra.core.html

* If you want to connect to Cassandra db then you can use Cassandra java driver
something like this:-
https://github.com/valchkou/cassandra-driver-mapping#write

* If you are using spark then you can look at this:-
https://www.datastax.com/dev/blog/accessing-cassandra-from-spark-in-java

Regards,
Varun Barala





--
You received this message because you are subscribed to the Google Groups "DataStax Spark Connector for Apache Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spark-connector-user+unsub...@lists.datastax.com.

Akshay

unread,
Jul 5, 2017, 12:58:27 PM7/5/17
to DataStax Spark Connector for Apache Cassandra
On Sunday, 25 June 2017 20:27:09 UTC+5:30, Akshay wrote:
> Using Cassandra, I want to create keyspace and tables dynamically using spring boot application while using spark-java connector,is this scenario possible to handle?I am trying to make a application based on spring framework,please help

I am using "https://www.datastax.com/dev/blog/accessing-cassandra-from-spark-in-java" but wondering if we have similar functionality of creating keyspace/table provided by "http://docs.spring.io/spring-data/cassandra/docs/1.0.5.RELEASE/reference/html/cassandra.core.html"

or is there a way to combine both ways?

Reply all
Reply to author
Forward
0 new messages