Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Reading different file formats
- // JSON files are under this location on the lab
- // You can download from github as well and copy to HDFS
- hadoop fs -ls /public/retail_db_json/orders
- sqlContext.read.json("/public/retail_db_json/orders").show
- sqlContext.load("/public/retail_db_json/orders", "json").show
Add Comment
Please, Sign In to add comment