From 63966cfb0627b5a2b5768d20ed019bb79cbeb0ad Mon Sep 17 00:00:00 2001 From: aiceflower Date: Tue, 23 Jun 2026 16:04:59 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20snakeyaml=20?= =?UTF-8?q?=E8=A2=AB=E9=94=99=E8=AF=AF=E6=8E=92=E9=99=A4=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: linkis-module 和 linkis-eureka 的 pom.xml 中排除了 snakeyaml, 导致 Spring Boot 无法解析 application-eureka.yml 和 application-linkis.yml, 所有服务启动失败。 修复: 在两个模块中添加 snakeyaml 为显式 compile 依赖,覆盖排除策略。 关联部署问题: jackson-module-scala 和 hadoop-hdfs 版本问题由增量构建时 profile 混用导致,-Papache profile 配置正确,干净编译即可解决。 Co-Authored-By: Claude Opus 4.7 --- linkis-commons/linkis-module/pom.xml | 5 +++++ .../linkis-service-discovery/linkis-eureka/pom.xml | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/linkis-commons/linkis-module/pom.xml b/linkis-commons/linkis-module/pom.xml index 687cc884600..00ee41d384a 100644 --- a/linkis-commons/linkis-module/pom.xml +++ b/linkis-commons/linkis-module/pom.xml @@ -360,6 +360,11 @@ spring-retry 1.3.4 + + org.yaml + snakeyaml + ${snakeyaml.version} + diff --git a/linkis-spring-cloud-services/linkis-service-discovery/linkis-eureka/pom.xml b/linkis-spring-cloud-services/linkis-service-discovery/linkis-eureka/pom.xml index 33254add420..a1f2a97b5b0 100644 --- a/linkis-spring-cloud-services/linkis-service-discovery/linkis-eureka/pom.xml +++ b/linkis-spring-cloud-services/linkis-service-discovery/linkis-eureka/pom.xml @@ -78,12 +78,13 @@ org.springframework.boot spring-boot-starter-logging - - org.yaml - snakeyaml - + + org.yaml + snakeyaml + ${snakeyaml.version} + io.micrometer micrometer-registry-prometheus From f605e714209cf81535edafca3f57522f3bc9da15 Mon Sep 17 00:00:00 2001 From: aiceflower Date: Tue, 23 Jun 2026 16:45:51 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E6=8E=92=E9=99=A4=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E4=BC=A0=E9=80=92=E4=BE=9D=E8=B5=96=20jackson-module-?= =?UTF-8?q?scala=5F2.11=20=E5=92=8C=20hadoop-hdfs-2.7.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: Maven 传递依赖解析时,scala.binary.version property 在 linkis-common 的依赖声明中未正确传递到 linkis-dist,导致 jackson-module-scala_2.11 (应为 2.12) 和 hadoop-hdfs:2.7.2 (应为 hadoop-hdfs-client:3.3.4) 被错误打包。 修复: 在 linkis-dist/pom.xml 中显式排除这两个错误版本并引入正确版本。 Co-Authored-By: Claude Opus 4.7 --- linkis-dist/pom.xml | 11 +++++++++++ linkis-dist/src/main/assembly/distribution.xml | 2 ++ 2 files changed, 13 insertions(+) diff --git a/linkis-dist/pom.xml b/linkis-dist/pom.xml index dbc115f829c..d63bd6b3c80 100644 --- a/linkis-dist/pom.xml +++ b/linkis-dist/pom.xml @@ -158,6 +158,17 @@ commons-beanutils + + + com.fasterxml.jackson.module + jackson-module-scala_2.12 + + + org.apache.hadoop + hadoop-hdfs-client + ${hadoop.version} + + diff --git a/linkis-dist/src/main/assembly/distribution.xml b/linkis-dist/src/main/assembly/distribution.xml index c1f876896a0..0bc2d1dfd84 100644 --- a/linkis-dist/src/main/assembly/distribution.xml +++ b/linkis-dist/src/main/assembly/distribution.xml @@ -301,6 +301,8 @@ false true + com.fasterxml.jackson.module:jackson-module-scala_2.11:* + org.apache.hadoop:hadoop-hdfs:* From a77d0e328b8fd48c2b9754c89ff593f22dd71df2 Mon Sep 17 00:00:00 2001 From: aiceflower Date: Thu, 25 Jun 2026 14:23:27 +0800 Subject: [PATCH 3/4] =?UTF-8?q?#AI=20COMMIT#=20fix:=20=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=20Spring=20Boot=202.7=20=E9=83=A8=E7=BD=B2=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - linkis-dist/pom.xml: 显式引入 commons-lang 2.6 (Eureka Client 依赖其 ExceptionUtils, 但 spring-cloud-netflix 传递依赖未带入) - application-engineconn.yml: 补全 spring.main.allow-circular-references + spring.mvc.pathmatch.matching-strategy (ant_path_matcher) + spring.mvc.servlet.path + spring.cloud.loadbalancer.cache.enabled=false eureka.yml 和 linkis.yml 已在 master 上含相关配置,但 engineconn.yml 遗漏了。缺失会导致 RPC POST /rpc/receiveAndReply 返回 404,引擎启动失败。 Co-Authored-By: Claude Opus 4.7 --- linkis-dist/package/conf/application-engineconn.yml | 13 +++++++++++++ linkis-dist/pom.xml | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/linkis-dist/package/conf/application-engineconn.yml b/linkis-dist/package/conf/application-engineconn.yml index 4f9610513c6..bf13af55b8b 100644 --- a/linkis-dist/package/conf/application-engineconn.yml +++ b/linkis-dist/package/conf/application-engineconn.yml @@ -15,11 +15,24 @@ spring: application: name: linkis-cg-engineconn + main: + allow-bean-definition-overriding: true + # Spring Boot 2.7+ compatibility: required for springfox 3.0.0 + Linkis internal bean cycles + allow-circular-references: true + mvc: + pathmatch: + matching-strategy: ant_path_matcher + servlet: + path: /api/rest_j/v1 servlet: multipart: max-file-size: 500MB max-request-size: 500MB file-size-threshold: 50MB + cloud: + loadbalancer: + cache: + enabled: false eureka: instance: # prefer-ip-address: true diff --git a/linkis-dist/pom.xml b/linkis-dist/pom.xml index d63bd6b3c80..5ffb17e07af 100644 --- a/linkis-dist/pom.xml +++ b/linkis-dist/pom.xml @@ -168,6 +168,12 @@ hadoop-hdfs-client ${hadoop.version} + + + commons-lang + commons-lang + 2.6 + From ee5a186c14b15e2b80620b420b2964f474294d5e Mon Sep 17 00:00:00 2001 From: aiceflower Date: Thu, 25 Jun 2026 11:47:59 +0800 Subject: [PATCH 4/4] =?UTF-8?q?#AI=20COMMIT#=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20impala=20=E5=BC=95=E6=93=8E=E7=BC=96=E8=AF=91=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=20(slf4j-api=20=E7=BC=BA=E5=A4=B1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit impala 模块编译报错 "Symbol 'type org.slf4j.Logger' is missing from the classpath",根因是 slf4j-api 不在 impala 编译 classpath 中: - linkis-common 标记为 provided,不传递 slf4j-api - impala-frontend / impala-minimal-hive-exec 用 * 排除所有传递依赖,slf4j-api 也被一并排除 Logging.logger 和 Utils.tryAndWarn 隐式参数都依赖 org.slf4j.Logger, 必须显式引入 slf4j-api 才能编译通过。 Co-Authored-By: Claude Opus 4.7 --- linkis-engineconn-plugins/impala/pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linkis-engineconn-plugins/impala/pom.xml b/linkis-engineconn-plugins/impala/pom.xml index 87f8ec8accb..bc24c5c7601 100644 --- a/linkis-engineconn-plugins/impala/pom.xml +++ b/linkis-engineconn-plugins/impala/pom.xml @@ -70,6 +70,14 @@ ${libthrift.version} + + + org.slf4j + slf4j-api + + org.apache.impala