Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here

spark-cassandra-connection-proof

A small proof of concept using spark-cassandra-connector

Subscribe to updates I use spark-cassandra-connection-proof


Statistics on spark-cassandra-connection-proof

Number of watchers on Github 0
Number of open issues 0
Main language XSLT
Open pull requests 0+
Closed pull requests 0+
Last commit almost 5 years ago
Repo Created almost 5 years ago
Repo Last Updated almost 5 years ago
Size 493 KB
Organization / Authorgualopezb
Contributors1
Page Updated
Do you use spark-cassandra-connection-proof? Leave a review!
View spark-cassandra-connection-proof activity
View on github
Book a Mock Interview With Me (Silicon Valley Engineering Leader, 100s of interviews conducted)
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating spark-cassandra-connection-proof for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Spark Cassandra Connection Proof

A small proof of concept using spark-cassandra-connector.

Prerequisites

Step by step Development

Configure Apache Spark

Configure Apache Cassandra

  • Download apache cassandra 2.2.4
  • Uncompress cassandra. tar xvf apache-cassandra-2.2.4-bin.tar.gz
  • Move cassandra to home path. mv apache-cassandra-2.2.4-bin ~/cassandra
  • Start cassandra. sudo ~/cassandra/bin/cassandra -f

Create new Scala Project in Eclipse.

Usage

  • Open the interactive command line interface for Cassandra.
    ~/cassandra/bin/cqlsh
  • Create keyspace.
    CREATE KEYSPACE spark_test_key WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
  • USE spark_test_key;
  • Create table.
    CREATE TABLE table_test (value int PRIMARY KEY);
  • cd path-to-project
  • Start sbt session. sbt
  • Run program. run
  • Finally get an RDD of type Row with which can do transformations and actions.
spark-cassandra-connection-proof list of languages used
Other projects in XSLT
Powered by Autocode - Instant Webhooks, Scripts and APIs
Autocode logo wordmark