Skip to Content
Mastering Apache Cassandra 3.x - Third Edition
book

Mastering Apache Cassandra 3.x - Third Edition

by Aaron Ploetz, Tejaswi Malepati
October 2018
Beginner to intermediate content levelBeginner to intermediate
348 pages
10h
English
Packt Publishing
Content preview from Mastering Apache Cassandra 3.x - Third Edition

Application

The application is the final component that is connected to master nodes to start interacting with data on this newly-built distributed Spark cluster. The application can be a job submit or even an interactive CLI shell of any language. You can start a PySpark shell and connect to an Apache Cassandra cluster by executing the following:

$SPARK_HOME/bin/pyspark \--packages com.datastax.spark:spark-cassandra-connector_2.11:2.3.0 \--master spark://127.0.0.1:7077 \--conf spark.driver.memory=<1/4th of memory in GB>g \--conf spark.executor.memory=<1/2th of memory in GB>g \--conf spark.driver.maxResultSize=<1/4th of memory in GB>g \--conf spark.cassandra.connection.host=<cassanra contact point> \--conf spark.cassandra.connection.local_dc=<dc ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Apache Cassandra in Just 2 Hours

Learn Apache Cassandra in Just 2 Hours

Navdeep Kaur

Publisher Resources

ISBN: 9781789131499Supplemental Content