Created
September 11, 2019 15:54
-
-
Save dgadiraju/796a524078415b81b2798d1e0274807c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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