scdf 1.7.3 docker k8s @Bean没有运行,没有日志

问题描述 投票:0回答:1

作为用户,将处理器编写为云功能,scdf 1.7.3,spring boot 1.5.9,spring-cloud-function-dependencies 1.0.2,

public class MyFunctionBootApp {

    public static void main(String[] args) {
        SpringApplication.run(MyFunctionBootApp.class, 
        "--spring.cloud.stream.function.definition=toUpperCase");
    }

    @Bean
    public Function<String, String> toUpperCase() {
        return s -> {
            log.info("received:=" + s);
            return ( (s+"jsa").toUpperCase());
        };
    }
}

我创建了一个简单的流=>时间| function-runner |在nexus的log function-runner-0.0.6.jar是好的docker创建好了,容器入口点设置为[java,-cp,/ app / resources:/ app / classes:/ app / libs / *,function.runner.MyFunctionBootApp ]

来自时间pod的时间消息没有到达执行toUpperCase函数的函数运行器处理器没有日志

我正在检查部署使用,app.function-runner.spring.cloud.stream.function.definition = toUpperCase,@功能扫描

任何线索?

spring-cloud-dataflow
1个回答
0
投票

我们讨论了function-runner被弃用,以支持Spring Cloud Stream中对Spring Cloud Function的原生支持。见:scdf-1-7-3-docker-k8s-function-runner-not-start。请不要复制发布。

此外,你是一个非常古老的Spring Boot版本(v1.5.9 - at least 1.5yrs old)。更重要的是,Spring Boot 1.x处于仅维护模式,到2019年8月将是EOL。请参阅:spring-boot-1-x-eol-aug-1st-2019。最新升级到2.1.x会很好。

© www.soinside.com 2019 - 2024. All rights reserved.