Packaging Application :
Execute sbt package to package the application
The application uses external classes and the ones that comes with Spark .so you need to include two external jars:
typesafe-config-2.10.1.jar,configs_2.12-0.4.4.jar
The application is going to be deployed to local[*]. Change it to whatever cluster you want in the configuration file (reference.conf)
/spark/bin/spark-submit --master "local[*]" --class fr.allami.test.clustering.Job --jars typesafe-config-2.10.1.jar,configs_2.12-0.4.4.jar /target/scala-2.11/test_de_2.11-0.1.jar [inputFile] [outputFolder]
[inputFile] the path of input data , it's optional, if not specified the program will use the file under resources
[outputFolder] by default it's /tmp/cluster-[0-5] , it's optional