Description
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
Attachments
Issue Links
- is duplicated by
-
SPARK-28954 For SparkCLI, start up with conf of HIVEAUXJARS, we add jar with SessionStateResourceLoader's addJar() API
- Resolved
- links to