当前位置:Gxlcms > 数据库问题 > SparkSQL

SparkSQL

时间:2021-07-01 10:21:17 帮助过:5人阅读

=SparkSession.builder.config(conf=SparkConf()).getOrCreate() df=spark.read.json("file:///usr/local/spark/examples/src/main/resources/people.json") df.show()

+----+-------+
| age|   name|
+----+-------+
|null|Michael|
|  30|   Andy|
|  19| Justin|
+----+-------+

SparkSQL

标签:example   imp   color   dataframe   tin   text   style   png   图片   

人气教程排行