首页 > 解决方案 > 胶水开发端点 - NoSuchMethodError:com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch

问题描述

我使用 Glue LPT 选项创建了新包。我在胶水火花外壳的胶水开发端点上运行这个 scala 代码。当我运行基本查询时,它返回正确的输出

spark.sql("show databases").show
2020-01-15 22:42:56,070 WARN [main] client.NexusHiveMetaStore (NexusHiveMetaStore.java:getDatabases(101)) - GetDatabases by pattern currently unsupported- only "nexus" will be returned
+------------+
|databaseName|
+------------+
| nexus|
+------------+

当我尝试运行另一个查询时,它说

spark.sql("select * from sivi.mbopCustomerData LIMIT 1”).show

scala> spark.sql("select * from sivi.mbopCustomerData LIMIT 1").show
2020-01-15 17:31:07,447 ERROR [main] metastore.RetryingHMSHandler (RetryingHMSHandler.java:invoke(159)) - java.lang.NoSuchMethodError: com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch;

不知道是什么导致了这个问题。

标签: scalaapache-spark

解决方案


推荐阅读