Skip to content

Instantly share code, notes, and snippets.

@pramodvspk
Created June 1, 2017 13:07
Show Gist options
  • Save pramodvspk/5430e5f88b51c51c7e69a3fe4bf87aac to your computer and use it in GitHub Desktop.
Save pramodvspk/5430e5f88b51c51c7e69a3fe4bf87aac to your computer and use it in GitHub Desktop.
Settings for using TypeSafeConfig
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