Created
February 1, 2018 23:46
-
-
Save krishnanraman/2332883da0dc3a4febfece2108bafe2d to your computer and use it in GitHub Desktop.
read orc file spark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>spark-shell | |
import org.apache.spark.sql.SQLContext | |
val sql = new SQLContext(sc) | |
sql.read.format("orc").load("./test.orc").schema.foreach(println) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment