saurfang / spark-sas7bdat

Splittable SAS (.sas7bdat) Input Format for Hadoop and Spark SQL
http://spark-packages.org/package/saurfang/spark-sas7bdat
Apache License 2.0
90 stars 40 forks source link

java.lang.BootstrapMethodError #67

Open leoliu0 opened 3 years ago

leoliu0 commented 3 years ago

Thanks for the great tool. I use pyspark on Spark 3.1.1, but when I read SAS file, it gives the following error

: java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: com/epam/parso/impl/SasFileReaderImpl at com.github.saurfang.sas.spark.SasRelation.inferSchema(SasRelation.scala:186) at com.github.saurfang.sas.spark.SasRelation.(SasRelation.scala:73) at com.github.saurfang.sas.spark.SasRelation$.apply(SasRelation.scala:45) at com.github.saurfang.sas.spark.DefaultSource.createRelation(DefaultSource.scala:209) at com.github.saurfang.sas.spark.DefaultSource.createRelation(DefaultSource.scala:42) at com.github.saurfang.sas.spark.DefaultSource.createRelation(DefaultSource.scala:27) at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:354) at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:326) at org.apache.spark.sql.DataFrameReader.$anonfun$load$3(DataFrameReader.scala:308) at scala.Option.getOrElse(Option.scala:189) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:308) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:240) 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 py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357) at py4j.Gateway.invoke(Gateway.java:282) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:238) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: com/epam/parso/impl/SasFileReaderImpl ... 23 more Caused by: java.lang.ClassNotFoundException: com.epam.parso.impl.SasFileReaderImpl at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 23 more

aburkh commented 1 month ago

I have the same issue, and it looks like the maven pom for 3.0.0-s_2.12 still points to the old parso version (2.0.11) instead of the new 2.0.14.