Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-23710 Upgrade the built-in Hive to 2.3.5 for hadoop-3.2
  3. SPARK-28840

--jar argument with spark-sql failed to load the jars to driver classpath

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    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

          Activity

            People

              sandeep.katta2007 Sandeep Katta
              sandeep.katta2007 Sandeep Katta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: