From 1977b9e73258568d6922e29380bbcafecdf9c0e1 Mon Sep 17 00:00:00 2001 From: Sandro La Bruzzo Date: Fri, 21 Oct 2022 11:12:24 +0200 Subject: [PATCH] updated documentation on how to use --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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