wangyum opened a new pull request, #42447:
URL: https://github.com/apache/spark/pull/42447

   ### What changes were proposed in this pull request?
   
   This PR partially reverts SPARK-43225. Added jackson-core-asl and 
jackson-mapper-asl back to pre-built distributions.
   
   ### Why are the changes needed?
   
   Fix `NoClassDefFoundError` when using Hive UDF:
   ```
   spark-sql (default)> add jar 
/Users/yumwang/Downloads/HiveUDFs-1.0-SNAPSHOT.jar;
   Time taken: 0.413 seconds
   spark-sql (default)> CREATE TEMPORARY FUNCTION long_to_ip as 
'net.petrabarus.hiveudfs.LongToIP';
   Time taken: 0.038 seconds
   spark-sql (default)> SELECT long_to_ip(2130706433L) FROM range(10);
   23/08/08 20:17:58 ERROR SparkSQLDriver: Failed in [SELECT 
long_to_ip(2130706433L) FROM range(10)]
   java.lang.NoClassDefFoundError: org/codehaus/jackson/map/type/TypeFactory
        at org.apache.hadoop.hive.ql.udf.UDFJson.<clinit>(UDFJson.java:64)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
   ...
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   manual test.
   


-- 
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