[
https://issues.apache.org/jira/browse/LIVY-459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gyorgy Gal updated LIVY-459:
----------------------------
Fix Version/s: 0.10.0
(was: 0.9.0)
This issue has been moved to the 0.10.0 release as part of a bulk update. If
you feel this is moved out inappropriately, feel free to provide justification
and reset the Fix Version to 0.9.0.
> First submission via livy-python-api fails with KryoException, subsequent
> retries succeed
> -----------------------------------------------------------------------------------------
>
> Key: LIVY-459
> URL: https://issues.apache.org/jira/browse/LIVY-459
> Project: Livy
> Issue Type: Bug
> Affects Versions: 0.5.0, 0.6.0
> Environment: Red Hat Enterprise Linux Server release 7.3 (Maipo)
> java version "1.8.0_141"
> Reporter: Matthias Wolf
> Priority: Major
> Fix For: 0.10.0
>
>
> I have the following code:
> {code}
> from livy.client import HttpClient
> def foobar(ctx):
> return ctx.sc.parallelize(range(101)).mean()
> client = HttpClient('http://r2i0n33:8998')
> try:
> print(client.submit(foobar).result())
> except Exception as e:
> print(e)
> print(client.submit(foobar).result())
> client.stop(True)
> {code}
> failing with the following error:
> {code:java}
> org.apache.livy.shaded.kryo.kryo.KryoException: Encountered unregistered
> class ID: 510
> org.apache.livy.shaded.kryo.kryo.util.DefaultClassResolver.readClass(DefaultClassResolver.java:119)
> org.apache.livy.shaded.kryo.kryo.Kryo.readClass(Kryo.java:656)
> org.apache.livy.shaded.kryo.kryo.Kryo.readClassAndObject(Kryo.java:767)
> org.apache.livy.client.common.Serializer.deserialize(Serializer.java:63)
> org.apache.livy.rsc.driver.BypassJob.call(BypassJob.java:39)
> org.apache.livy.rsc.driver.BypassJob.call(BypassJob.java:27)
> org.apache.livy.rsc.driver.JobWrapper.call(JobWrapper.java:57)
> org.apache.livy.rsc.driver.BypassJobWrapper.call(BypassJobWrapper.java:42)
> org.apache.livy.rsc.driver.BypassJobWrapper.call(BypassJobWrapper.java:27)
> java.util.concurrent.FutureTask.run(FutureTask.java:266)
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> java.lang.Thread.run(Thread.java:748)
> 50.0
> {code}
> Is this to be expected? I would have thought that the first submission should
> work already. I did not find this behavior online/in the mailing list
> archives. Any pointers how to resolve this?
> This happens in both the livy-0.5.0 binaries and the github master, on RedHat
> EL 7.3.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)