📜  SparkSession pyspark - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:59.452000             🧑  作者: Mango

代码示例1
from pyspark.sql import SparkSession

spark = SparkSession \
    .builder \
    .appName("Python Spark K-means example") \
    .config("spark.some.config.option", "some-value") \
    .getOrCreate()