Reamer commented on pull request #4127:
URL: https://github.com/apache/zeppelin/pull/4127#issuecomment-864825992


   @nilroy I tried around a bit and found this [great explanation on 
Stackoverflow](https://stackoverflow.com/a/45201229)
   
   I think the following solution can be used in our case. Tested at 
https://www.tutorialspoint.com/execute_bash_online.php
   ```
   export SPARK_SUBMIT_OPTIONS="$SPARK_SUBMIT_OPTIONS --conf 
'spark.driver.extraJavaOptions=-Dcom.example.env=production 
-Dcom.example.role=zeppelin' --conf mytest=myvalue"
   
   readarray -td ''  SPARK_SUBMIT_OPTIONS_ARRAY < <(awk '{ 
gsub(/--conf/,"\0--conf"); print; }' <<<"${SPARK_SUBMIT_OPTIONS}--conf"); unset 
'SPARK_SUBMIT_OPTIONS_ARRAY[-1]'
   declare -p SPARK_SUBMIT_OPTIONS_ARRAY;
   ```
   
   What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to