This page explains how to use the Spark Shell by taking the example of counting elements in a Cassandra table.
Start spark-shell by importing your package. For example:
spark-shell
spark-shell --jars jars/DataLakeImport-assembly-1.0.jar
import DataLake._
Your case classes are known from now on.
import com.datastax.spark.connector._
val subjects = sc.cassandraTable[Subject]("datalake","subject")
subjects.count()
res0: Long = 859390
There was an error while loading. Please reload this page.