Spring Cloud Data Flow Docker Compose问题解决

研究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()
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, 同时手工下载相应的文件放到里边。

你可能感兴趣的:(spring-cloud)