pyspark读写mysql数据库 from pyspark.sql import SparkSession # 导入类型 from pyspark.sql.types import StructType, StructField, LongType, StringType,IntegerType data = spark.sparkContext