Jeff Zhang created ZEPPELIN-2489:
------------------------------------

             Summary: Can not use pickle in PySparkInterpreter
                 Key: ZEPPELIN-2489
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2489
             Project: Zeppelin
          Issue Type: Bug
            Reporter: Jeff Zhang


{code}
def f():
    "hello"

import pickle
pickle.dumps(f)
{code}

{code}
Fail to execute line 5: pickle.dumps(f)
Traceback (most recent call last):
  File 
"/var/folders/dp/hmchg5dd3vbcvds26q91spdw0000gp/T/zeppelin_pyspark-5559547270503920588.py",
 line 338, in <module>
    exec(code, _zcUserQueryNameSpace)
  File "<stdin>", line 5, in <module>
_pickle.PicklingError: Can't pickle <function f at 0x104317840>: attribute 
lookup f on __main__ failed
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to