Re: sessionState could not be accessed in spark-shell command line

2017-09-07 Thread ChenJun Zou
I am examined the code and found lazy val is added recently in 2.2.0 2017-09-07 14:34 GMT+08:00 ChenJun Zou <stephen@gmail.com>: > thanks, > my mistake > > 2017-09-07 14:21 GMT+08:00 sujith chacko <sujithchacko.2...@gmail.com>: > >> If your intention is to ju

Re: sessionState could not be accessed in spark-shell command line

2017-09-07 Thread ChenJun Zou
ember which you cannot access. > > Thanks. > > > On Thu, 7 Sep 2017 at 11:39 AM, ChenJun Zou <stephen@gmail.com> wrote: > >> spark-2.1.1 I use >> >> >> >> 2017-09-07 14:00 GMT+08:00 sujith chacko <sujithchacko.2...@gmail.com>: >>

Re: sessionState could not be accessed in spark-shell command line

2017-09-07 Thread ChenJun Zou
"explain extended select * from table1") > > The above query you can use for seeing logical plan. > > Thanks, > Sujith > > On Thu, 7 Sep 2017 at 11:03 AM, ChenJun Zou <stephen@gmail.com> wrote: > >> Hi, >> >> when I use spark-shell to ge

sessionState could not be accessed in spark-shell command line

2017-09-06 Thread ChenJun Zou
Hi, when I use spark-shell to get the logical plan of sql, an error occurs scala> spark.sessionState :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