scala - 胶水开发端点 - 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;
不知道是什么导致了这个问题。
解决方案
推荐阅读
- python - 如果参数字符串是 unicode,则 sql 执行时间会更长
- tensorflow - Tensorflow 深度学习模型推理是否比 keras 快
- javascript - 如何用jquery动态刷新和显示列表?
- arrays - 隐含在数组构造函数中构造重复的标量值
- javascript - SAPUI5 应用与 iframe 之间的跨域通信
- javascript - 字符串开头和结尾没有空格
- apache-kafka - 两个 Kafa 消费者,一个生产者和一个分区
- python - 高效点积密集到稀疏
- amazon-web-services - S3 中的对象锁定是否有助于防止对象被覆盖?
- python - Azure Functions Python blobTrigger 如何修复“Microsoft.Azure.WebJobs.Extensions.Storage:对象引用未设置为对象的实例。”?