Spring Cloud Dataflow和计划的任务

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

我在Openshift集群上安装了Spring Cloud Dataflow。我尝试注册一个应用程序,然后创建一个任务,一切都很好,但是当我尝试安排任务时,出现以下异常:

java.lang.IllegalArgumentException:无法为本地存储库创建目录:?/。m2 / repository在org.springframework.util.Assert.isTrue(Assert.java:118)〜[spring-core-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.cloud.deployer.resource.maven.MavenArtifactResolver。(MavenArtifactResolver.java:114)〜[spring-cloud-deployer-resource-maven-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]在org.springframework.cloud.deployer.resource.maven.MavenResource。(MavenResource.java:122)〜[spring-cloud-deployer-resource-maven-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]在org.springframework.cloud.deployer.resource.maven.MavenResource.parse(MavenResource.java:268)〜[spring-cloud-deployer-resource-maven-2.2.0.RELEASE.jar!/:2.2.0.RELEASE ]在org.springframework.cloud.dataflow.registry.support.AppResourceCommon.getResource(AppResourceCommon.java:167)〜[spring-cloud-dataflow-registry-2.4.0.RELEASE.jar!/:2.4.0.RELEASE]在org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService.getAppResource(DefaultAppRegistryService.java:266)〜[spring-cloud-dataflow-registry-2.4.0.RELEASE.jar!/:2.4.0.RELEASE]在org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService $$ FastClassBySpringCGLIB $$ a8bae4.invoke()〜[spring-cloud-dataflow-registry-2.4.0.RELEASE.jar!/:2.4.0.RELEASE]在org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)〜[spring-core-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.aop.framework.CglibAopProxy $ CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769)〜[spring-aop-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)〜[spring-aop-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.aop.framework.CglibAopProxy $ CglibMethodInvocation.proceed(CglibAopProxy.java:747)〜[spring-aop-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)〜[spring-tx-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)〜[spring-tx-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)〜[spring-aop-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.aop.framework.CglibAopProxy $ CglibMethodInvocation.proceed(CglibAopProxy.java:747)〜[spring-aop-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.aop.framework.CglibAopProxy $ DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)〜[spring-aop-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService $$ EnhancerBySpringCGLIB $$ 2e83e4f6.getAppResource()〜[spring-cloud-dataflow-registry-2.4.0.RELEASE.jar!/:2.4.0.RELEASE]在org.springframework.cloud.dataflow.server.service.impl.DefaultSchedulerService.getTaskLauncherResource(DefaultSchedulerService.java:423)〜[spring-cloud-dataflow-server-core-2.4.0.RELEASE.jar!/:2.4.0 。发布]在org.springframework.cloud.dataflow.server.service.impl.DefaultSchedulerService.schedule(DefaultSchedulerService.java:211)〜[spring-cloud-dataflow-server-core-2.4.0.RELEASE.jar!/:2.4.0 。发布]在org.springframework.cloud.dataflow.server.controller.TaskSchedulerController.save(TaskSchedulerController.java:154)〜[spring-cloud-dataflow-server-core-2.4.0.RELEASE.jar!/:2.4.0.RELEASE ]在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)〜[na:1.8.0_232]在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)〜[na:1.8.0_232]在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.8.0_232]在java.lang.reflect.Method.invoke(Method.java:498)〜[na:1.8.0_232]在org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)〜[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)〜[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)〜[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)〜[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)〜[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)〜[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)〜[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)〜[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在javax.servlet.http.HttpServlet.service(HttpServlet.java:660)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)[spring-webmvc-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在javax.servlet.http.HttpServlet.service(HttpServlet.java:741)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)[tomcat-embed-websocket-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.springframework.web.filter.ForwardedHeaderFilter.doFilterInternal(ForwardedHeaderFilter.java:158)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:108)上[spring-boot-actuator-2.2.4.RELEASE.jar!/:2.2.4.RELEASE]在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)[spring-web-5.2.3.RELEASE.jar!/:5.2.3.RELEASE]在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:747)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)上[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)上[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.coyote.AbstractProtocol $ ConnectionHandler.process(AbstractProtocol.java:860)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1598)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)上[tomcat-embed-core-9.0.30.jar!/:9.0.30]在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[na:1.8.0_232]在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)[na:1.8.0_232]在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-9.0.30.jar!/:9.0.30]在java.lang.Thread.run(Thread.java:748)[na:1.8.0_232]

我不知道这是什么意思,我是Dataflow中的新手。我不明白他为什么要尝试使用Maven而不是kubernetes部署程序,为什么我会收到此错误。有人可以给我更多解释吗?

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

基于以上日志,它在启动计划的任务时尝试下载Maven资源。这是因为您将任务应用程序注册为Maven资源而不是docker映像。您应该在Kubernetes环境中注册任务应用程序的docker映像。

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