You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/09/11 12:13:45 UTC

[jira] [Updated] (SPARK-10550) SQLListener error constructing extended SQLContext

     [ https://issues.apache.org/jira/browse/SPARK-10550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen updated SPARK-10550:
------------------------------
       Priority: Minor  (was: Major)
    Component/s: SQL

(Please have a look at https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark first)

I don't know if this is formally supported, but can you suggest a workaround? like moving this initialization later? the problem is that {{this}} is escaping during construction, but might work out still if it is postponed.

> SQLListener error constructing extended SQLContext 
> ---------------------------------------------------
>
>                 Key: SPARK-10550
>                 URL: https://issues.apache.org/jira/browse/SPARK-10550
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.0
>            Reporter: shao lo
>            Priority: Minor
>
> With spark 1.4.1 I was able to created a custom SQLContext class.  With spark 1.5.0, I now get an error  calling the super class constructor.  The problem is related to this new code that was added between 1.4.1 and 1.5.0
>   // `listener` should be only used in the driver
>   @transient private[sql] val listener = new SQLListener(this)
>   sparkContext.addSparkListener(listener)
>   sparkContext.ui.foreach(new SQLTab(this, _))
> ..which generates 
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.spark.sql.execution.ui.SQLListener.<init>(SQLListener.scala:34)
> 	at org.apache.spark.sql.SQLContext.<init>(SQLContext.scala:77)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org