Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Dynamic Batch Interval Adjustment
  • Loading branch information
floatingtony committed Feb 19, 2017
commit 7706aa9695d4f197b892d66dedc6f06232c24340
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ object BatchController {
// is the dynamic batch interval enabled
var isEnable: Boolean = false
def isDynamicBatchIntervalEnabled(conf: SparkConf): Boolean =
conf.getBoolean("spark.streaming.dynamicBatchInterval.enabled", true)
conf.getBoolean("spark.streaming.dynamicBatchInterval.enabled", false)

def getBatchIntervalEnabled(): Boolean = isEnable
def setBatchIntervalEnabled(enabled: Boolean): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BasicBatchEstimator(conf: SparkConf)
conf.get("spark.streaming.BatchEstimator", "basic") match {
case "basic" =>
val batchinfo = conf.get(
"spark.streaming.BatchEstimator.basic.batchList", "2,3,4,5,6")
"spark.streaming.BatchEstimator.basic.batchList", "0")
val batchStr = batchinfo.split(",")
length = batchStr.length
batchList = new Array[Long](length)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ object BatchEstimator extends Logging{
conf.getBoolean("spark.streaming.DefaultBatchInterval.enabled", false)

def isBasicBatchIntervalEnabled(conf: SparkConf): Boolean =
conf.getBoolean("spark.streaming.BasicBatchInterval.enabled", true)
conf.getBoolean("spark.streaming.BasicBatchInterval.enabled", false)
}