[
https://issues.apache.org/jira/browse/SPARK-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tathagata Das resolved SPARK-1878.
----------------------------------
Resolution: Fixed
> Incorrect initialization order in JavaStreamingContext
> ------------------------------------------------------
>
> Key: SPARK-1878
> URL: https://issues.apache.org/jira/browse/SPARK-1878
> Project: Spark
> Issue Type: Bug
> Components: Streaming
> Affects Versions: 0.9.0, 1.0.0, 0.9.1
> Reporter: Shixiong Zhu
> Labels: easyfix
> Fix For: 1.0.0
>
>
> sc will be null because it is initialized before sparkContext
> @deprecated("use sparkContext", "0.9.0")
> val sc: JavaSparkContext = sparkContext
> /** The underlying SparkContext */
> val sparkContext = new JavaSparkContext(ssc.sc)
--
This message was sent by Atlassian JIRA
(v6.2#6252)