Guest User

Untitled

a guest
Nov 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. // RDD from files in HDFS
  2. val orders = sc.textFile("/public/retail_db/orders")
  3.  
  4. // RDD from files in local file system
  5. val productsRaw = scala.io.Source.fromFile("/data/retail_db/products/part-00000").getLines.toList
  6. val products = sc.parallelize(productsRaw)
Add Comment
Please, Sign In to add comment