Last active
August 29, 2015 14:13
-
-
Save samklr/9262b141d9cd8e6c1721 to your computer and use it in GitHub Desktop.
WISDM actitracker
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 data= sc.textFile("/home/samklr/data/") | |
val gts = data.map(_.split(",")) | |
.map (lin => lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(3) +"\n" + | |
lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(4) +"\n"+ | |
lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(5) +"\n" | |
) | |
gts.take(15).foreach(println) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment