Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ trait BasePipeline {
.setMaster("local")

jobConfig.store match {
case RedisConfig(host, port) =>
case RedisConfig(host, port, ssl) =>
conf
.set("spark.redis.host", host)
.set("spark.redis.port", port.toString)
.set("spark.redis.ssl", ssl.toString)
}

jobConfig.metrics match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object Modes extends Enumeration {

abstract class StoreConfig

case class RedisConfig(host: String, port: Int) extends StoreConfig
case class RedisConfig(host: String, port: Int, ssl: Boolean) extends StoreConfig

abstract class MetricConfig

Expand Down Expand Up @@ -84,7 +84,7 @@ case class IngestionJobConfig(
source: Source = null,
startTime: DateTime = DateTime.now(),
endTime: DateTime = DateTime.now(),
store: StoreConfig = RedisConfig("localhost", 6379),
store: StoreConfig = RedisConfig("localhost", 6379, false),
metrics: Option[MetricConfig] = Some(StatsDConfig("localhost", 9125)),
deadLetterPath: Option[String] = None
)