Luca Rosellini created ZEPPELIN-119:
---------------------------------------

             Summary: SparkILoop loadFiles is called before binder 
initialization
                 Key: ZEPPELIN-119
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-119
             Project: Zeppelin
          Issue Type: Bug
          Components: Interpreters
    Affects Versions: 0.5.0
            Reporter: Luca Rosellini


In SparkInterpreter, method open(), the call to SparkILoop loadFiles method is 
performed before putting 'sqlc', 'sc', 'z' and 'out' into the binder object.

This means that if you have any scala init script you want to pass to Spark 
through the 'args' interpreter option (e.g.: args="-i init.scala"), in those 
init script you won't have access to any Spark's context.

Having access to 'sc' or 'sqlc' is useful to customize context initialization, 
like for example, adding custom UDFs to sql context.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to