Created
June 1, 2017 13:08
-
-
Save pramodvspk/aafd6e363c499606a16b9d0bd18cb5cf to your computer and use it in GitHub Desktop.
Spark Batch Job using Type Safe Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object BatchJob { | |
def main(args: Array[String]): Unit = { | |
SparkUtils.setupLogging() | |
val sparkProps = config.Settings.SparkProps | |
val executionMode = args(0) match { | |
case dev => sparkProps.devExecutionMode | |
case cluster => sparkProps.clusterExecutionMode | |
} | |
val conf = new SparkConf().setMaster(executionMode).setAppName("WordCount") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment