Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-21697

NPE & ExceptionInInitializerError trying to load UDF from HDFS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.1.1
    • None
    • SQL
    • None
    • Spark Client mode, Hadoop 2.6.0

    Description

      Reported on the PR for SPARK-12868: trying to load a UDF of HDFS is triggering an ExceptionInInitializerError, caused by an NPE which should only happen if the commons-logging LOG log is null.

      Hypothesis: the commons logging scan for commons-logging.properties is happening in the classpath with the HDFS JAR; this is triggering a D/L of the JAR, which needs to force in commons-logging, and, as that's not inited yet, NPEs

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: