Created
December 15, 2015 16:29
-
-
Save rustyrazorblade/4e74301de9192f2e8bc2 to your computer and use it in GitHub Desktop.
ETL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyspark.sql import SQLContext | |
sql = SQLContext(sc) | |
df = sql.read.format("org.apache.spark.sql.cassandra").load(keyspace="lens", table="raw_data") | |
df.write.format('parquet').save(hdfs_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment