You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Keunhyun Oh (Jira)" <ji...@apache.org> on 2021/05/21 00:55:01 UTC

[jira] [Commented] (LIVY-857) In k8s, Interactive session's library on spark 3.0.2, classes in packages cannot be imported

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

Keunhyun Oh commented on LIVY-857:
----------------------------------

When spark.extra.classpath="~/.ivy/jars" is added, it is resolved.

I don't understand about it.

> In k8s, Interactive session's library on spark 3.0.2, classes in packages cannot be imported
> --------------------------------------------------------------------------------------------
>
>                 Key: LIVY-857
>                 URL: https://issues.apache.org/jira/browse/LIVY-857
>             Project: Livy
>          Issue Type: Bug
>          Components: RSC
>    Affects Versions: 0.7.0, 0.8.0
>            Reporter: Keunhyun Oh
>            Priority: Major
>
> In my k8s enviroment, Interactive session's library on spark 3.0.2, classes in packages are cannot imported.
>  
> I will try to use livy binary packages below,
> 1) 0.7.0: binaries in AWS EMR 6.3.0 (for using scala 2.12)
> 2) 0.8.0-SNAPSHOT: 
> [https://github.com/jahstreet/incubator-livy]
> 3) spark 3.0.2: 
> - using client mode: [https://github.com/apache/spark/tree/v3.0.2]
> - using cluster mode:  [https://github.com/apache/spark/pull/32397]
>  
> ln jupyter notebook with spark magic, configure is that
> {code:java}
> %%configure -f
> {...
>  ...
>  "conf": {"spark.jars.packages": "mypackages" }
>  ...
> }{code}
>  
> The error is raised when importing some class,
> {code:java}
> import com.mypackage.test{code}
> {code:java}
> An error aws encounted:
> <console>:23:error: object mypackage is not a member of package com
>     import com.mypackage.test{code}
>  
> However, it is no problem that calling class by name 
> {code:java}
> Class.forName(com.mypackage.test){code}
>  
> It is only occured in livy interactive session.
> livy batch, spark-submit and spark-shell  have no problem about it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)