Zeppelin and Spark Library Dependency

阅读更多
Zeppelin and Spark Library Dependency

I am using the third way to add the dependency as follow in spark interpreter
%spark.dep

z.load("com.sun.mail:javax.mail:1.6.2")

But I found that is always used, and every time it will say that
“Must be used before SparkInterpreter (%spark) initialized
Hint: put this paragraph before any Spark code and restart Zeppelin/Interpreter”.

Then I tried this First solution from here
https://zeppelin.apache.org/docs/latest/usage/interpreter/dependency_management.html

Click ‘Interpreter’ menu in navigation bar. Find ’Spark’ in my case and click on ‘Edit’ button.
In the Dependencies tap area, put these as follow:
artifact : com.sun.mail:javax.mail:1.6.2

Click on ’Save’. Delete the z.load(xxxxxx); and try again.

References:
https://zeppelin.apache.org/docs/latest/interpreter/spark.html

你可能感兴趣的:(Zeppelin and Spark Library Dependency)