使用Zeppelin中的spark解释器,当笔记A使用z.runNote函数执行笔记B,并且笔记B使用z.runNote执行笔记C时,解释器在执行笔记B时挂断。
所有这些背后的想法是有一些注释(我们称它们为初始化注释),这些注释定义了我在其余注释中共享的一些实用程序功能/类。例如,可以在使用它们的每个注释的开头执行该注释,如果每个注释都有一个独立的解释器,这将很方便。
说明A
// This is the note that uses shared classes and that actually "does" something
z.runNote("B") // In order to import my shared things in one line
// Do other stuff
注释B
// This note executes notes that contain the definitions of my classes
z.runNote("C") // Interpreter hangs in here
z.runNote("Other notes that define shared classes")
注释C
// This note defines a shared class
据我了解,这应该有效,也许我在这里缺少什么?也许我采取了一种不好的方法,并且有更好的方法可以做到这一点?
谢谢!