【发布时间】:2021-02-18 03:05:37
【问题描述】:
我目前正在使用 spring boot 2.3.0 版本在 java 中构建一个 apache spark 作业。这份工作在我当地工作得很好。我想在 Azure databricks(7.2.0) 上部署这个 Spring Boot Spark 作业。但是在 Azure databricks 上部署 spring boot jar 时,出现以下错误 -
ava.lang.NoSuchMethodError: org.springframework.core.ResolvableType.forInstance(Ljava/lang/Object;)Lorg/springframework/core/ResolvableType;
at org.springframework.context.event.SimpleApplicationEventMulticaster.resolveDefaultEventType(SimpleApplicationEventMulticaster.java:145)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
at org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:74)
at org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:47)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
我检查了 azure databricks 文档,它在 azure databricks 上默认安装了 spring core 4.1.3,在我的代码中 spring core 版本是 5.2.8。所以,我想问一下有没有什么办法可以在azure databricks上升级spring core版本。
【问题讨论】:
标签: azure spring-boot apache-spark databricks azure-databricks