Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ class JavaStreamingContext(val ssc: StreamingContext) {
*/
def this(path: String, hadoopConf: Configuration) = this(new StreamingContext(path, hadoopConf))

@deprecated("use sparkContext", "0.9.0")
val sc: JavaSparkContext = sparkContext

/** The underlying SparkContext */
val sparkContext = new JavaSparkContext(ssc.sc)

@deprecated("use sparkContext", "0.9.0")
val sc: JavaSparkContext = sparkContext

/**
* Create an input stream from network source hostname:port. Data is received using
* a TCP socket and the receive bytes is interpreted as UTF8 encoded \n delimited
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public void equalIterable(Iterable<?> a, Iterable<?> b) {
equalIterator(a.iterator(), b.iterator());
}

@Test
public void testInitialization() {
Assert.assertNotNull(ssc.sc());
}

@SuppressWarnings("unchecked")
@Test
Expand Down