Is it possible to set global variables in a Zeppelin Notebook?

こ雲淡風輕ζ 提交于 2019-12-03 14:19:44
Rockie Yang

Using z.put and z.get can share variable over different notebooks.

z.put("name", "zeppelin")
z.get("name")

Possibly combine with z.angularBind and z.angular to use it in dashboard. ref How to put a variable into z ZeppelinContext in javascript in Zeppelin?

You can use notebook-level global variables in the SQL by using the syntax $${variableName} instead of ${variableName}. [Reference].

When you run one of the paragraphs that uses global variables, the global variable input fields will appear above all the paragraphs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!