Skip to content
Snippets Groups Projects
Commit 42bcfb2b authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Fix two compile errors introduced in merge

parent ba9338f1
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ class CheckpointWriter(conf: SparkConf, checkpointDir: String, hadoopConf: Confi ...@@ -64,7 +64,7 @@ class CheckpointWriter(conf: SparkConf, checkpointDir: String, hadoopConf: Confi
val file = new Path(checkpointDir, "graph") val file = new Path(checkpointDir, "graph")
val MAX_ATTEMPTS = 3 val MAX_ATTEMPTS = 3
val executor = Executors.newFixedThreadPool(1) val executor = Executors.newFixedThreadPool(1)
val compressionCodec = CompressionCodec.createCodec() val compressionCodec = CompressionCodec.createCodec(conf)
// The file to which we actually write - and then "move" to file // The file to which we actually write - and then "move" to file
val writeFile = new Path(file.getParent, file.getName + ".next") val writeFile = new Path(file.getParent, file.getName + ".next")
// The file to which existing checkpoint is backed up (i.e. "moved") // The file to which existing checkpoint is backed up (i.e. "moved")
......
...@@ -50,7 +50,7 @@ class JobGenerator(jobScheduler: JobScheduler) extends Logging { ...@@ -50,7 +50,7 @@ class JobGenerator(jobScheduler: JobScheduler) extends Logging {
val clock = { val clock = {
val clockClass = ssc.sc.conf.getOrElse( val clockClass = ssc.sc.conf.getOrElse(
"spark.streaming.clock", "org.apache.spark.streaming.util.SystemClock") "spark.streaming.clock", "org.apache.spark.streaming.util.SystemClock")
val clock = Class.forName(clockClass).newInstance().asInstanceOf[Clock] Class.forName(clockClass).newInstance().asInstanceOf[Clock]
} }
val timer = new RecurringTimer(clock, ssc.graph.batchDuration.milliseconds, val timer = new RecurringTimer(clock, ssc.graph.batchDuration.milliseconds,
longTime => eventProcessorActor ! GenerateJobs(new Time(longTime))) longTime => eventProcessorActor ! GenerateJobs(new Time(longTime)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment