You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2019/09/12 10:49:00 UTC

[jira] [Resolved] (SPARK-28840) --jar argument with spark-sql failed to load the jars to driver classpath

     [ https://issues.apache.org/jira/browse/SPARK-28840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuming Wang resolved SPARK-28840.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 25542
[https://github.com/apache/spark/pull/25542]

> --jar argument with spark-sql failed to load the jars to driver classpath
> -------------------------------------------------------------------------
>
>                 Key: SPARK-28840
>                 URL: https://issues.apache.org/jira/browse/SPARK-28840
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Sandeep Katta
>            Assignee: Sandeep Katta
>            Priority: Critical
>             Fix For: 3.0.0
>
>
> launch spark-sql as below
> ./bin/spark-sql --master local --jars=/opt/BigdataTools/summation.jar
> create temporary function add as 'org.apache.spark.examples.CustomAdd';
> after executing above line you can see the below error
> *Error in query: Can not load class 'org.apache.spark.examples.CustomAdd' when registering the function 'add', please make sure it is on the classpath;*
> *Note:same command works for other spark version*



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org