Skip to content

Commit

Permalink
removing the unused variable in PairRddFunctions.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
jackylk committed Oct 17, 2014
1 parent 3bf43c7 commit a874047
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1031,17 +1031,14 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])

writer.setup(context.getStageId, context.getPartitionId, attemptNumber)
writer.open()
var count = 0
try {
while (iter.hasNext) {
val record = iter.next()
count += 1
writer.write(record._1.asInstanceOf[AnyRef], record._2.asInstanceOf[AnyRef])
}
} finally {
writer.close()
}
logInfo(s"$count records are written")
writer.commit()
}

Expand Down

0 comments on commit a874047

Please sign in to comment.