Created
June 1, 2017 13:07
-
-
Save pramodvspk/5430e5f88b51c51c7e69a3fe4bf87aac to your computer and use it in GitHub Desktop.
Settings for using TypeSafeConfig
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
package config | |
import com.typesafe.config.ConfigFactory | |
/** | |
* Created by Pramod on 6/1/2017. | |
*/ | |
object Settings { | |
private val config = ConfigFactory.load() | |
object SparkProps { | |
private val sparkProps = config.getConfig("sparkproperties") | |
lazy val devExecutionMode = sparkProps.getString("dev.executionmode") | |
lazy val clusterExecutionMode = sparkProps.getString("cluster.executionmode") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment