运行sparkStreaming 程序出错Exception in thread “main” org.apache.spark.SparkException: Only one SparkConte
19/12/18 11:21:38 INFO SharedState: Warehouse path is 'file:/C:/Users/baron/Desktop/sparktest/spark-warehouse/'.
Exception in thread "main" org.apache.spark.SparkException: Only one SparkContext may be running in this JVM (see SPARK-2243). To ignore this error, set spark.driver.allowMultipleContexts = true. The currently running SparkContext was created at:
org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:860)
day01.SparkSql_01$.main(SparkSql_01.scala:16)
day01.SparkSql_01.main