You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Saisai Shao (JIRA)" <ji...@apache.org> on 2018/04/20 03:36:00 UTC

[jira] [Commented] (LIVY-459) First submission via livy-python-api fails with KryoException, subsequent retries succeed

    [ https://issues.apache.org/jira/browse/LIVY-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16445239#comment-16445239 ] 

Saisai Shao commented on LIVY-459:
----------------------------------

Thanks for the report. Are you going to fix this issue, or just report it?

> 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
>
> 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
(v7.6.3#76005)