spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ChenJun Zou <>
Subject sessionState could not be accessed in spark-shell command line
Date Thu, 07 Sep 2017 05:33:11 GMT

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

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

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

View raw message