It's possible to exchange variables between Scala and Spark
through z.put and z.get.
How to pass a variable to %sh and %sql?
In Jupyter it's possible to do for example as
where localfile and and hdfsfile are Python variables.
Can't find any references for something similar in Shell Interpreter
In many notebooks we have to pass small variabels
from Zeppelin notes to external scripts as parameters.
It would be awesome to have something like
where var1 and var2 would be implied to be fetched as z.get('var1')
and z.get('var2') respectively.
Or similarly for %sql :
We miss a lot global variables for %sql and %sh so that a Zeppelin note can be used as a single parametrized
orchestration for a whole workflow.
Escaping is done similarly like in Jupyter.
With double curly braces –