ZEPPELIN-3907. Add code statement into Spark JobGroup Id for SparkInterpreter
What is this PR for?
Straightforward change to add code statement into Spark JobGroupId, so that we can find the associated spark job in spark ui easier.
What type of PR is it?
[ Improvement ]
Todos
- [ ] - Task
What is the Jira issue?
- https://jira.apache.org/jira/browse/ZEPPELIN-3907
How should this be tested?
- Manually tested.
Screenshots (if appropriate)

Questions:
- Does the licenses files need update? No
- Is there breaking changes for older versions? No
- Does this needs documentation? No
While this is a really nice feature to have, it does introduce some risk of information leakage in an organization. Take for example select * from tableofsecrets where secretcolumn = 'supersecret'.
What about adding a configuration parameter for activating this feature?
While this is a really nice feature to have, it does introduce some risk of information leakage in an organization. Take for example
select * from tableofsecrets where secretcolumn = 'supersecret'. What about adding a configuration parameter for activating this feature?
That's a good point.
Although I think it's possible to lock down Spark Driver UI through spark.ui.filters?
Also it might be possible to redact out passwords and other sensitive information in Zeppelin - something similar to spark.redaction.regex.
Maybe this change should be an option and off by default?
Another option is to set Spark JobGroup Id to paragraph's title ..