Guest User

Untitled

a guest
Nov 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // Reading different file formats
  2.  
  3. // JSON files are under this location on the lab
  4. // You can download from github as well and copy to HDFS
  5. hadoop fs -ls /public/retail_db_json/orders
  6.  
  7. sqlContext.read.json("/public/retail_db_json/orders").show
  8. sqlContext.load("/public/retail_db_json/orders", "json").show
Add Comment
Please, Sign In to add comment