Created
February 21, 2017 02:00
-
-
Save prassee/39061a7286968173f85459ba757dacc5 to your computer and use it in GitHub Desktop.
read from parquet bare metal code
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
import com.ionos.adx.streaming.AdxEventProcessingConstants | |
object ReadParquet extends AdxEventProcessingConstants { | |
def main(args: Array[String]): Unit = { | |
val parquetPath = conf.get("spark.hdfs.url") + "/lrm/hourlyData/17205/24775980" | |
import sparkSession.implicits._ | |
val data = sparkSession.read.parquet(parquetPath).toDF() | |
data.show(10) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment