from pyspark.sql import SparkSession spark = SparkSession.builder.appName("My app").getOrCreate() datexxx = spark.conf.get("spark.date123") print('-------------') print(datexxx) print('-------------') my_dataframe = spark.sql("select * from mammut_user.weather_info") my_dataframe.show() spark.stop()