Spring Cloud Data Flow Docker Compose问题解决

39次阅读

共计 2164 个字符,预计需要花费 6 分钟才能阅读完成。

研究 Spring Cloud Data Flow 时,启动 Docker Compose 的时候发现报错如下:
dataflow-server | java.lang.RuntimeException: Error reading from URL [http://bit.ly/Dearborn-SR1-task-applications-maven]
dataflow-server | at org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService.loadProperties(DefaultAppRegistryService.java:284)
dataflow-server | at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
dataflow-server | at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
dataflow-server | at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
dataflow-server | at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
dataflow-server | at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
dataflow-server | at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
dataflow-server | at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
dataflow-server | at org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService.importAll(DefaultAppRegistryService.java:297)
dataflow-server | at org.springframework.cloud.dataflow.registry.service.DefaultAppRegistryService$$FastClassBySpringCGLIB$$a8bae4.invoke(<generated>)
dataflow-server | at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
dataflow-server | at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
dataflow-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
dataflow-server | at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
dataflow-server | at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
dataflow-server | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
dataflow-server | at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688


解决方案,修改 docker-compose.yml 中 bit.ly 相关的 url 为 bit.ly.xiaoyou.biz, 同时手工下载相应的文件放到里边。

正文完
 0