Skip to content

It is spark sample project for reading/writing data from/to Cassandra using spark-cassandra-connector.

Notifications You must be signed in to change notification settings

techmonad/spark-cassandra-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spark-cassandra-example

Keyspace and table creation:

$ cqlsh
cqlsh> create  keyspace company with replication ={'class': 'SimpleStrategy', 'replication_factor':1} ;
cqlsh> use company;
cqlsh:company> create table employee (id Int primary key, name text, email text, dob timestamp);
cqlsh:company> insert into employee(id, name, email, dob) values (1, 'bob' , 'bob@gmail.com', 615234600000);
cqlsh:company> insert into employee(id, name, email, dob) values (2, 'rob' , 'rob@gmail.com', 610234600000);
cqlsh:company> select * from employee ;

About

It is spark sample project for reading/writing data from/to Cassandra using spark-cassandra-connector.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages