spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Zhang (Jira)" <j...@apache.org>
Subject [jira] [Created] (SPARK-30277) NoSuchMethodError in Spark 3.0.0-preview with Delta Lake
Date Tue, 17 Dec 2019 02:35:00 GMT
Victor Zhang created SPARK-30277:
------------------------------------

             Summary: NoSuchMethodError in Spark 3.0.0-preview with Delta Lake
                 Key: SPARK-30277
                 URL: https://issues.apache.org/jira/browse/SPARK-30277
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.0.0
         Environment: Spark: 3.0.0-preview-bin-hadoop2.7

Delta Lake: 0.5.0_2.12

Java: 1.8.0_171
            Reporter: Victor Zhang


Open spark shell with delta lake packages:
{code:java}
bin/spark-shell --master local --packages io.delta:delta-core_2.12:0.5.0{code}
Create a delta table:
{code:java}
spark.range(5).write.format("delta").save("/tmp/delta-table1")
{code}
Throws NoSuchMethodException.
{code:java}
com.google.common.util.concurrent.ExecutionError: java.lang.NoSuchMethodError: org.apache.spark.util.Utils$.classForName(Ljava/lang/String;)Ljava/lang/Class;
  at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2261)
  at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
  at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4789)
  at org.apache.spark.sql.delta.DeltaLog$.apply(DeltaLog.scala:740)
  at org.apache.spark.sql.delta.DeltaLog$.forTable(DeltaLog.scala:702)
  at org.apache.spark.sql.delta.sources.DeltaDataSource.createRelation(DeltaDataSource.scala:126)
  at org.apache.spark.sql.execution.datasources.SaveIntoDataSourceCommand.run(SaveIntoDataSourceCommand.scala:46)
  at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:71)
  at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:69)
  at org.apache.spark.sql.execution.command.ExecutedCommandExec.doExecute(commands.scala:87)
  at org.apache.spark.sql.execution.SparkPlan.$anonfun$execute$1(SparkPlan.scala:189)
  at org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:227)
  at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:224)
  at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:185)
  at org.apache.spark.sql.execution.QueryExecution.toRdd$lzycompute(QueryExecution.scala:110)
  at org.apache.spark.sql.execution.QueryExecution.toRdd(QueryExecution.scala:109)
  at org.apache.spark.sql.DataFrameWriter.$anonfun$runCommand$1(DataFrameWriter.scala:829)
  at org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$4(SQLExecution.scala:100)
  at org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:160)
  at org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:87)
  at org.apache.spark.sql.DataFrameWriter.runCommand(DataFrameWriter.scala:829)
  at org.apache.spark.sql.DataFrameWriter.saveToV1Source(DataFrameWriter.scala:309)
  at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:293)
  at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:236)
  ... 47 elided
Caused by: java.lang.NoSuchMethodError: org.apache.spark.util.Utils$.classForName(Ljava/lang/String;)Ljava/lang/Class;
  at org.apache.spark.sql.delta.storage.LogStoreProvider.createLogStore(LogStore.scala:122)
  at org.apache.spark.sql.delta.storage.LogStoreProvider.createLogStore$(LogStore.scala:120)
  at org.apache.spark.sql.delta.DeltaLog.createLogStore(DeltaLog.scala:58)
  at org.apache.spark.sql.delta.storage.LogStoreProvider.createLogStore(LogStore.scala:117)
  at org.apache.spark.sql.delta.storage.LogStoreProvider.createLogStore$(LogStore.scala:115)
  at org.apache.spark.sql.delta.DeltaLog.createLogStore(DeltaLog.scala:58)
  at org.apache.spark.sql.delta.DeltaLog.<init>(DeltaLog.scala:79)
  at org.apache.spark.sql.delta.DeltaLog$$anon$3.$anonfun$call$2(DeltaLog.scala:744)
  at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper$.allowInvokingTransformsInAnalyzer(AnalysisHelper.scala:194)
  at org.apache.spark.sql.delta.DeltaLog$$anon$3.$anonfun$call$1(DeltaLog.scala:744)
  at com.databricks.spark.util.DatabricksLogging.recordOperation(DatabricksLogging.scala:77)
  at com.databricks.spark.util.DatabricksLogging.recordOperation$(DatabricksLogging.scala:67)
  at org.apache.spark.sql.delta.DeltaLog$.recordOperation(DeltaLog.scala:671)
  at org.apache.spark.sql.delta.metering.DeltaLogging.recordDeltaOperation(DeltaLogging.scala:103)
  at org.apache.spark.sql.delta.metering.DeltaLogging.recordDeltaOperation$(DeltaLogging.scala:89)
  at org.apache.spark.sql.delta.DeltaLog$.recordDeltaOperation(DeltaLog.scala:671)
  at org.apache.spark.sql.delta.DeltaLog$$anon$3.call(DeltaLog.scala:743)
  at org.apache.spark.sql.delta.DeltaLog$$anon$3.call(DeltaLog.scala:740)
  at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4792)
  at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
  at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
  at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
  at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
  ... 71 more
{code}
In Delta Lake LogStore.scala
{code:java}
val logStoreClass = Utils.classForName(logStoreClassName)
{code}
In Spark Utils.scala
{code:java}
def classForName[C](
    className: String,
    initialize: Boolean = true,
    noSparkClassLoader: Boolean = false): Class[C] = {
...
}{code}
The code seems to be fine.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message