daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Feb 17th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. l = range(1, 10000)
  2. lRDD = sc.parallelize(l)
  3. productsRaw = open("/data/retail_db/products/part-00000").read().splitlines()
  4. type(productsRaw)
  5. productsRDD = sc.parallelize(productsRaw)
  6. type(productsRDD)
  7. productsRDD.first()
  8. for i in productsRDD.take(10): print(i)
  9. productsRDD.count()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top