I am running a Spark job with the Spark Job Server in which I pass job parameters with an HTTP post (much like the word count example here: https://github.com/spark-jobserver/spark-jobserver).
At the moment I can successfully pass these parameters as a CSV list. For example:
curl -d "param1 = val1, param2 = val2" 'localhost:8090/jobs?appName=app&classPath=class&sync=true&context=contextName'
Is it possible to encapsulate these parameters in JSON format? I have tried with no success things like:
curl -H "Content-Type: application/json" -X POST -d '{"param1":"val1","param2":"val2"}' 'localhost:8080/...'