Skip to content

Commit

Permalink
[STREAMING][MINOR] Typo fixes
Browse files Browse the repository at this point in the history
Author: Jacek Laskowski <[email protected]>

Closes #10698 from jaceklaskowski/streaming-kafka-typo-fixes.
  • Loading branch information
jaceklaskowski authored and zsxwing committed Jan 11, 2016
1 parent 9559ac5 commit b313bad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ object KafkaCluster {
val seedBrokers: Array[(String, Int)] = brokers.split(",").map { hp =>
val hpa = hp.split(":")
if (hpa.size == 1) {
throw new SparkException(s"Broker not the in correct format of <host>:<port> [$brokers]")
throw new SparkException(s"Broker not in the correct format of <host>:<port> [$brokers]")
}
(hpa(0), hpa(1).toInt)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class KafkaRDD[
var requestOffset = part.fromOffset
var iter: Iterator[MessageAndOffset] = null

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

0 comments on commit b313bad

Please sign in to comment.