Skip to content

Commit

Permalink
SPARK-3276 Started to use ssc.conf rather than ssc.sparkContext.getCo…
Browse files Browse the repository at this point in the history
…nf, and also getLong method directly.
  • Loading branch information
emres committed Apr 13, 2015
1 parent bfe0acb commit 1c53ba9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ class FileInputDStream[K, V, F <: NewInputFormat[K,V]](
* Files with mod times older than this "window" of remembering will be ignored. So if new
* files are visible within this window, then the file will get selected in the next batch.
*/
private val minRememberDurationMin = Minutes(ssc.sparkContext.getConf
.get("spark.streaming.minRememberDurationMin", "1")
.toLong)
private val minRememberDurationMin = Minutes(ssc.conf
.getLong("spark.streaming.minRememberDurationMin", 1L))

// This is a def so that it works during checkpoint recovery:
private def clock = ssc.scheduler.clock
Expand Down

0 comments on commit 1c53ba9

Please sign in to comment.