shenbinglife opened a new issue #2239: URL: https://github.com/apache/hudi/issues/2239
**_Tips before filing an issue_** - Have you gone through our [FAQs](https://cwiki.apache.org/confluence/display/HUDI/FAQ)? - Join the mailing list to engage in conversations and get faster support at [email protected]. - If you have triaged this as a bug, then file an [issue](https://issues.apache.org/jira/projects/HUDI/issues) directly. **Describe the problem you faced** Spark driver throw NoClassDefFoundError: org/apache/hudi/org/apache/commons/codec/binary/Base64 **To Reproduce** Steps to reproduce the behavior: 1. add hudi-spark-bundle_2.11-0.5.3.jar to all spark node's path: /opt/spark/jars 2.create a simple main method , it contains "new BasicScheme()" 3.spark-submit --deploy-mode cluster xxx.jar 4. boom!!! `20/11/10 13:56:10 ERROR yarn.ApplicationMaster: User class threw exception: java.lang.NoClassDefFoundError: org/apache/hudi/org/apache/commons/codec/binary/Base64 java.lang.NoClassDefFoundError: org/apache/hudi/org/apache/commons/codec/binary/Base64 at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:65) at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:84) at com.example.HttpConflict.main(HttpConflict.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:673) Caused by: java.lang.ClassNotFoundException: org.apache.hudi.org.apache.commons.codec.binary.Base64 at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ` **Expected behavior** A clear and concise description of what you expected to happen. **Environment Description** * Hudi version : 0.5.3 * Spark version : 2.4.0 * Hive version : * Hadoop version : 3.0.0 * Storage (HDFS/S3/GCS..) : * Running on Docker? (yes/no) : **Additional context** Add any other context about the problem here. **Stacktrace** ```Add the stacktrace of the error.``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
