Hi,

when I use spark-shell to get the logical plan of  sql, an error occurs

scala> spark.sessionState
<console>:30: error: lazy value sessionState in class SparkSession cannot
be accessed in org.apache.spark.sql.SparkSession
       spark.sessionState
             ^

But if I use spark-submit to access the "sessionState" variable, It's OK.

Is there a way to access it in spark-shell?

Reply via email to