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

Accessing Cassandra data

Once the configuration is all set, we import a table to local and register it as a table locally. This allows any kind of queries to be run. Refer to the SparkR API docs for further information at Spark: R API Docs: https://spark.apache.org/docs/latest/api/R/index.html.

The commands are as follows:

# for All in one docker its already installed# install.packages(c("sparklyr","dplyr"), repos="http://cran.us.r- #project.org")library(sparklyr)config <- spark_config()config$sparklyr.defaultPackages = "com.datastax.spark:spark-cassandra-connector_2.11:2.3.0"config$spark.driver.host = '127.0.0.1'config$spark.cassandra.connection.host = '127.0.0.1'config$spark.cassandra.auth.username = 'cassandra'config$spark.cassandra.auth.password ...
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