创建workspace:Spark云计算平台Databricks使用,创建workspace和Compute计算集群(Spark集群)-CSDN博客
1 创建schema
选择Calalog,点击Create schema

输入名字,Storage location选择workspace,数据都是保存在AWS S3云存储

2 创建Table
选择test,Create -> Create table

点击browse,本地上传people.json文件
bash
[
{"name":"Michael", "age":28},
{"name":"Andy", "age":30},
{"name":"Justin", "age":19}
]

点击Create table

创建成功

3 SQL

4 scala查询Table
如何运行Scala程序:Spark云计算平台Databricks使用,第一个scala程序-CSDN博客
Scala代码
Scala
var sqlDF = spark.sql("SELECT * FROM test.people")
sqlDF.show()
运行
