Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Created September 11, 2019 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgadiraju/796a524078415b81b2798d1e0274807c to your computer and use it in GitHub Desktop.
Save dgadiraju/796a524078415b81b2798d1e0274807c to your computer and use it in GitHub Desktop.
package retail
import com.typesafe.config.ConfigFactory
import org.apache.spark.{SparkConf, SparkContext}
/**
* Created by itversity on 05/06/17.
*/
object DailyProductRevenue {
def main(args: Array[String]): Unit = {
val props = ConfigFactory.load()
val envProps = props.getConfig(args(0))
val conf = new SparkConf().
setAppName("Daily Product Revenue").
setMaster(envProps.getString("execution.mode"))
val sc = new SparkContext(conf)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment