File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 70
70
<version >${aws.kinesis.producer.version} </version >
71
71
<scope >test</scope >
72
72
</dependency >
73
+ <dependency >
74
+ <groupId >com.google.protobuf</groupId >
75
+ <artifactId >protobuf-java</artifactId >
76
+ <version >2.6.1</version >
77
+ <scope >test</scope >
78
+ </dependency >
73
79
<dependency >
74
80
<groupId >org.mockito</groupId >
75
81
<artifactId >mockito-core</artifactId >
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ private[kinesis] class KinesisRecordProcessor[T](
70
70
* in the DStream
71
71
*/
72
72
override def processRecords (batch : List [Record ], checkpointer : IRecordProcessorCheckpointer ) {
73
+ logInfo(s " Received batch: $batch" )
73
74
if (! receiver.isStopped()) {
74
75
try {
75
76
receiver.addRecords(shardId, batch)
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ abstract class KinesisStreamTests(aggregateTestData: Boolean) extends KinesisFun
78
78
if (testUtils != null ) {
79
79
// Delete the Kinesis stream as well as the DynamoDB table generated by
80
80
// Kinesis Client Library when consuming the stream
81
- testUtils.deleteStream()
82
- testUtils.deleteDynamoDBTable(appName)
81
+ // testUtils.deleteStream()
82
+ // testUtils.deleteDynamoDBTable(appName)
83
83
}
84
84
}
85
85
@@ -182,7 +182,7 @@ abstract class KinesisStreamTests(aggregateTestData: Boolean) extends KinesisFun
182
182
val collected = new mutable.HashSet [Int ] with mutable.SynchronizedSet [Int ]
183
183
stream.map { bytes => new String (bytes).toInt }.foreachRDD { rdd =>
184
184
collected ++= rdd.collect()
185
- logInfo(" Collected = " + rdd.collect().toSeq .mkString(" , " ))
185
+ logInfo(" Collected = " + collected .mkString(" , " ))
186
186
}
187
187
ssc.start()
188
188
@@ -207,7 +207,7 @@ abstract class KinesisStreamTests(aggregateTestData: Boolean) extends KinesisFun
207
207
val collected = new mutable.HashSet [Int ] with mutable.SynchronizedSet [Int ]
208
208
stream.foreachRDD { rdd =>
209
209
collected ++= rdd.collect()
210
- logInfo(" Collected = " + rdd.collect().toSeq .mkString(" , " ))
210
+ logInfo(" Collected = " + collected .mkString(" , " ))
211
211
}
212
212
ssc.start()
213
213
Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ private[kinesis] class KinesisTestUtils extends Logging {
139
139
}
140
140
}
141
141
142
-
143
142
logInfo(s " Pushed $testData: \n\t ${shardIdToSeqNumbers.mkString(" \n\t " )}" )
144
143
shardIdToSeqNumbers.toMap
145
144
}
You can’t perform that action at this time.
0 commit comments