Last active
August 26, 2015 13:00
-
-
Save swcho/5cf4d16c429a62498dab to your computer and use it in GitHub Desktop.
Zeppelen Example 1
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
%sh | |
mkdir linkage | |
cd linkage/ | |
wget https://archive.ics.uci.edu/ml/machine-learning-databases/00210/donation.zip | |
unzip donation.zip | |
unzip 'block_*.zip' | |
ls |
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
val rawblocks = sc.textFile("linkage/*.csv") | |
rawblocks.first | |
rawblocks.count() | |
var took10 = rawblocks.take(10) | |
took10.foreach(println) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment