Skip to content
Snippets Groups Projects
Commit 7b885349 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #502 from tdas/master

Very minor change in a testcase
parents c45d6f12 bc4a6eb8
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ class InputStreamsSuite extends TestSuiteBase with BeforeAndAfter { ...@@ -94,7 +94,7 @@ class InputStreamsSuite extends TestSuiteBase with BeforeAndAfter {
test("flume input stream") { test("flume input stream") {
// Set up the streaming context and input streams // Set up the streaming context and input streams
val ssc = new StreamingContext(master, framework, batchDuration) val ssc = new StreamingContext(master, framework, batchDuration)
val flumeStream = ssc.flumeStream("localhost", 33333, StorageLevel.MEMORY_AND_DISK) val flumeStream = ssc.flumeStream("localhost", testPort, StorageLevel.MEMORY_AND_DISK)
val outputBuffer = new ArrayBuffer[Seq[SparkFlumeEvent]] val outputBuffer = new ArrayBuffer[Seq[SparkFlumeEvent]]
with SynchronizedBuffer[Seq[SparkFlumeEvent]] with SynchronizedBuffer[Seq[SparkFlumeEvent]]
val outputStream = new TestOutputStream(flumeStream, outputBuffer) val outputStream = new TestOutputStream(flumeStream, outputBuffer)
...@@ -104,7 +104,7 @@ class InputStreamsSuite extends TestSuiteBase with BeforeAndAfter { ...@@ -104,7 +104,7 @@ class InputStreamsSuite extends TestSuiteBase with BeforeAndAfter {
val clock = ssc.scheduler.clock.asInstanceOf[ManualClock] val clock = ssc.scheduler.clock.asInstanceOf[ManualClock]
val input = Seq(1, 2, 3, 4, 5) val input = Seq(1, 2, 3, 4, 5)
Thread.sleep(1000) Thread.sleep(1000)
val transceiver = new NettyTransceiver(new InetSocketAddress("localhost", 33333)); val transceiver = new NettyTransceiver(new InetSocketAddress("localhost", testPort));
val client = SpecificRequestor.getClient( val client = SpecificRequestor.getClient(
classOf[AvroSourceProtocol], transceiver); classOf[AvroSourceProtocol], transceiver);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment