diff --git a/README.md b/README.md index c21173c..d1227e4 100644 --- a/README.md +++ b/README.md @@ -25,4 +25,15 @@ This script does the following: - upload all the dependencies jar by checking in the pom those preceded by comment `` - submit the spark-job and you can watch the output log directly on your machine + +## Class convention + +To create a new scala Class Spark, you need to extend the _AbstractScalaApplication_ on package `com.sandro.app` +Implements the method `run` where you have already the spark context initialized. + +Then define a Singleton object NameOfTheClass and in the main methods you run the code: + +`new YOURCLASS(args,logger).initialize().run()` + + That's AWESOME! \ No newline at end of file