dongjoon-hyun commented on PR #46468:
URL: https://github.com/apache/spark/pull/46468#issuecomment-2105239656

   I locally verified that the failure of `HiveUDFDynamicLoadSuite` is 
consistent.
   ```
   $ build/mvn -Dtest=none 
-DwildcardSuites=org.apache.spark.sql.hive.HiveUDFDynamicLoadSuite test
   - Spark should be able to run Hive UDF using jar regardless of current 
thread context classloader (UDF
   13:33:42.810 WARN org.apache.spark.SparkContext: The JAR 
file:///Users/dongjoon/APACHE/spark-merge/sql/hive/src/test/noclasspath/hive-test-udfs.jar
 at spark://localhost:55031/jars/hive-test-udfs.jar has been added already. 
Overwriting of added jar is not supported in the current version.
   
   *** RUN ABORTED ***
   A needed class was not found. This could be due to an error in your runpath. 
Missing class: org/apache/commons/lang/StringUtils
     java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
     at 
org.apache.hadoop.hive.contrib.udf.example.GenericUDFTrim2.performOp(GenericUDFTrim2.java:43)
     at 
org.apache.hadoop.hive.ql.udf.generic.GenericUDFBaseTrim.evaluate(GenericUDFBaseTrim.java:75)
     at 
org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initializeAndFoldConstants(GenericUDF.java:170)
     at 
org.apache.spark.sql.hive.HiveGenericUDFEvaluator.returnInspector$lzycompute(hiveUDFEvaluators.scala:118)
     at 
org.apache.spark.sql.hive.HiveGenericUDFEvaluator.returnInspector(hiveUDFEvaluators.scala:117)
     at 
org.apache.spark.sql.hive.HiveGenericUDF.dataType$lzycompute(hiveUDFs.scala:132)
     at org.apache.spark.sql.hive.HiveGenericUDF.dataType(hiveUDFs.scala:132)
     at 
org.apache.spark.sql.hive.HiveUDFExpressionBuilder$.makeHiveFunctionExpression(HiveSessionStateBuilder.scala:184)
     at 
org.apache.spark.sql.hive.HiveUDFExpressionBuilder$.$anonfun$makeExpression$1(HiveSessionStateBuilder.scala:164)
     at org.apache.spark.util.Utils$.withContextClassLoader(Utils.scala:185)
     ...
     Cause: java.lang.ClassNotFoundException: 
org.apache.commons.lang.StringUtils
     at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
     at 
org.apache.hadoop.hive.contrib.udf.example.GenericUDFTrim2.performOp(GenericUDFTrim2.java:43)
     at 
org.apache.hadoop.hive.ql.udf.generic.GenericUDFBaseTrim.evaluate(GenericUDFBaseTrim.java:75)
     at 
org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initializeAndFoldConstants(GenericUDF.java:170)
     at 
org.apache.spark.sql.hive.HiveGenericUDFEvaluator.returnInspector$lzycompute(hiveUDFEvaluators.scala:118)
     at 
org.apache.spark.sql.hive.HiveGenericUDFEvaluator.returnInspector(hiveUDFEvaluators.scala:117)
     at 
org.apache.spark.sql.hive.HiveGenericUDF.dataType$lzycompute(hiveUDFs.scala:132)
     at org.apache.spark.sql.hive.HiveGenericUDF.dataType(hiveUDFs.scala:132)
     ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to