Skip to content

Commit b313bad

Browse files
jaceklaskowskizsxwing
authored andcommitted
[STREAMING][MINOR] Typo fixes
Author: Jacek Laskowski <[email protected]> Closes #10698 from jaceklaskowski/streaming-kafka-typo-fixes.
1 parent 9559ac5 commit b313bad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

external/kafka/src/main/scala/org/apache/spark/streaming/kafka/KafkaCluster.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ object KafkaCluster {
385385
val seedBrokers: Array[(String, Int)] = brokers.split(",").map { hp =>
386386
val hpa = hp.split(":")
387387
if (hpa.size == 1) {
388-
throw new SparkException(s"Broker not the in correct format of <host>:<port> [$brokers]")
388+
throw new SparkException(s"Broker not in the correct format of <host>:<port> [$brokers]")
389389
}
390390
(hpa(0), hpa(1).toInt)
391391
}

external/kafka/src/main/scala/org/apache/spark/streaming/kafka/KafkaRDD.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class KafkaRDD[
156156
var requestOffset = part.fromOffset
157157
var iter: Iterator[MessageAndOffset] = null
158158

159-
// The idea is to use the provided preferred host, except on task retry atttempts,
159+
// The idea is to use the provided preferred host, except on task retry attempts,
160160
// to minimize number of kafka metadata requests
161161
private def connectLeader: SimpleConsumer = {
162162
if (context.attemptNumber > 0) {

0 commit comments

Comments
 (0)