Created
December 10, 2015 18:19
-
-
Save jbn/b88004bbea6efde2050d to your computer and use it in GitHub Desktop.
JSON + bz2 + Spark = WINNING
This file contains hidden or 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
// Load a DataFrame of users. Each line in the file is a JSON | |
// document, representing one row. | |
val sqlContext = new org.apache.spark.sql.SQLContext(sc) | |
val people = sqlContext.read.json("users.json.bz2") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment