Advertisement
Guest User

Untitled

a guest
May 25th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. val sqlContext = new org.apache.spark.sql.SQLContext(sc)
  2.  
  3. val df = sqlContext.read.parquet("/path/to/file/without/hdfs://")
  4.  
  5. df.printSchema
  6.  
  7. df.count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement