Skip to content

Instantly share code, notes, and snippets.

@rustyrazorblade
Last active August 29, 2015 14:24
Show Gist options
  • Save rustyrazorblade/959ad9473df74cea887b to your computer and use it in GitHub Desktop.
Save rustyrazorblade/959ad9473df74cea887b to your computer and use it in GitHub Desktop.
pyspark 1.4 with dataframes first gist on the planet
from pyspark.sql import SQLContext
sql = SQLContext(sc)
apd = sql.read.format("org.apache.spark.sql.cassandra").load(keyspace="labor", table="average_price_data")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment