-
Linux(Centos)服务器通过docker-compose.yml部署启动相关基础组件
version: "3" services: zookeeper-0: container_name: zookeeper-0 image: registry.saas.hand-china.com/tools/zookeeper:3.4.10 hostname: zookeeper-0 environment: - ZK_REPLICAS=1 - ZK_HEAP_SIZE=2G - ZK_TICK_TIME=2000 - ZK_INIT_LIMIT=10 - ZK_SYNC_LIMIT=5 - ZK_MAX_CLIENT_CNXNS=60 - ZK_SNAP_RETAIN_COUNT=3 - ZK_PURGE_INTERVAL=1 - ZK_LOG_LEVEL=INFO - ZK_CLIENT_PORT=2181 - ZK_SERVER_PORT=2888 - ZK_ELECTION_PORT=3888 ports: - "2181:2181" - "2888:2888" - "3888:3888" command: - sh - -c - zkGenConfig.sh && exec zkServer.sh start-foreground volumes: - "/docker-share/kafka/zk:/var/lib/zookeeper" kafka-0: container_name: kafka-0 image: registry.saas.hand-china.com/tools/kafka:1.0.0 hostname: kafka-0 depends_on: - zookeeper-0 links: - zookeeper-0 ports: - "9092:9092" command: - sh - -c - "/opt/kafka/bin/kafka-server-start.sh config/server.properties \ --override zookeeper.connect=zookeeper-0:2181 \ --override log.dirs=/opt/kafka/data/logs \ --override broker.id=0 " volumes: - "/docker-share/kafka/kafka:/opt/kafka/data" mysql: container_name: mysql image: registry.cn-hangzhou.aliyuncs.com/choerodon-tools/mysql:5.7.17 hostname: mysql ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: root volumes: - /docker-share/mysql/mysql_data:/var/lib/mysql - /docker-share/mysql/mysql_db.cnf:/etc/mysql/conf.d/mysql_db.cnf expose: - "3306" eureka-server: container_name: eureka-server hostname: eureka-server image: registry.cn-shanghai.aliyuncs.com/choerodon/eureka-server:0.5.0 ports: - "8000:8000" links: - kafka-0 environment: - spring.kafka.bootstrap-servers=kafka-0:9092 - eureka.client.serviceUrl.defaultZone=http://127.0.0.1:8000/eureka/ - eureka.client.register-with-eureka=false - eureka.client.fetch-registry=false - hystrix.stream.queue.enabled=false - spring.cloud.bus.enabled=false - spring.sleuth.stream.enabled=false expose: - "8000" api-gateway: container_name: api-gateway image: registry.cn-shanghai.aliyuncs.com/choerodon/api-gateway:0.5.0 links: - eureka-server depends_on: - eureka-server ports: - "8080:8080" environment: - zuul.routes.test.path=/test/** # 新增自定义服务时需要添加zuul.routes.服务名.path/serviceId这两个配置 - zuul.routes.test.serviceId=test-service - eureka.client.serviceUrl.defaultZone=http://eureka-server:8000/eureka/ - hystrix.stream.queue.enabled=false - spring.cloud.bus.enabled=false - spring.sleuth.stream.enabled=false expose: - "8080" gateway-helper: container_name: gateway-helper image: registry.cn-shanghai.aliyuncs.com/choerodon/gateway-helper:0.5.0 depends_on: - eureka-server - mysql links: - eureka-server - mysql ports: - "9180:9180" environment: - zuul.routes.test.path=/test/** # 新增自定义服务时需要添加zuul.routes.服务名.path/serviceId这两个配置 - zuul.routes.test.serviceId=test-service - eureka.client.serviceUrl.defaultZone=http://eureka-server:8000/eureka/ - spring.datasource.url=jdbc:mysql://mysql/iam_service?useUnicode=true&characterEncoding=utf-8&useSSL=false - spring.datasource.username=root - spring.datasource.password=root - hystrix.stream.queue.enabled=false - spring.cloud.bus.enabled=false - spring.sleuth.stream.enabled=false iam-service: container_name: iam-service image: registry.cn-shanghai.aliyuncs.com/choerodon/iam-service:0.5.0 depends_on: - eureka-server - mysql - kafka-0 links: - eureka-server - mysql - kafka-0 ports: - "8030:8030" environment: - eureka.client.serviceUrl.defaultZone=http://eureka-server:8000/eureka/ - spring.kafka.bootstrap-servers=kafka-0:9092 - spring.datasource.url=jdbc:mysql://mysql/iam_service?useUnicode=true&characterEncoding=utf-8&useSSL=false - spring.datasource.username=root - spring.datasource.password=root - hystrix.stream.queue.enabled=false - spring.cloud.bus.enabled=false - spring.sleuth.stream.enabled=false manager-service: container_name: manager-service image: registry.cn-shanghai.aliyuncs.com/choerodon/manager-service:0.5.0 depends_on: - eureka-server - mysql - kafka-0 links: - eureka-server - mysql - kafka-0 ports: - "8963:8963" environment: - spring.kafka.bootstrap-servers=kafka-0:9092 - eureka.client.serviceUrl.defaultZone=http://eureka-server:8000/eureka/ - spring.datasource.url=jdbc:mysql://mysql/manager_service?useUnicode=true&characterEncoding=utf-8&useSSL=false - spring.datasource.username=root - spring.datasource.password=root - hystrix.stream.queue.enabled=false - spring.cloud.bus.enabled=false - spring.sleuth.stream.enabled=false oauth-server: container_name: oauth-server image: registry.cn-shanghai.aliyuncs.com/choerodon/oauth-server:0.5.0 depends_on: - eureka-server - mysql links: - eureka-server - mysql ports: - "8020:8020" environment: - eureka.client.serviceUrl.defaultZone=http://eureka-server:8000/eureka/ - spring.datasource.username=root - spring.datasource.url=jdbc:mysql://mysql/iam_service?useUnicode=true&characterEncoding=utf-8&useSSL=false - spring.datasource.password=root - hystrix.stream.queue.enabled=false - spring.cloud.bus.enabled=false - spring.sleuth.stream.enabled=false
如上,可正常启动。
-
本地idea运行案例,相关配置如下
spring: application: name: test-service datasource: url: jdbc:mysql://172.20.10.10:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=false username: root password: root kafka: bootstrap-servers: 172.20.10.10:9092 server: port: 8080 mybatis: mapperLocations: classpath*:/mapper/*.xml configuration: mapUnderscoreToCamelCase: true management: port: 8081 security: enabled: true feign: hystrix: enabled: true security: basic: enabled: false ignored: /v2/api-docs eureka: instance: preferIpAddress: true leaseRenewalIntervalInSeconds: 10 leaseExpirationDurationInSeconds: 30 client: serviceUrl: defaultZone: ${EUREKA_DEFAULT_ZONE:http://172.20.10.10:8000/eureka/}
启动运行demo,报错如下:
2018-06-20 15:08:56.711 INFO [test-service,,,] 29337 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2018-06-20 15:08:56.712 WARN [test-service,,,] 29337 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: 拒绝连接
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_151]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_151]
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.8.jar:3.4.8--1]
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141) ~[zookeeper-3.4.8.jar:3.4.8--1]
2018-06-20 15:08:57.813 INFO [test-service,,,] 29337 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2018-06-20 15:08:57.813 WARN [test-service,,,] 29337 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn : Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: 拒绝连接
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_151]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_151]
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.8.jar:3.4.8--1]
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141) ~[zookeeper-3.4.8.jar:3.4.8--1]
2018-06-20 15:08:57.918 INFO [test-service,,,] 29337 --- [ main] org.apache.zookeeper.ZooKeeper : Session: 0x0 closed
2018-06-20 15:08:57.918 INFO [test-service,,,] 29337 --- [ain-EventThread] org.apache.zookeeper.ClientCnxn : EventThread shut down for session: 0x0
2018-06-20 15:08:57.919 WARN [test-service,,,] 29337 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'outputBindingLifecycle'; nested exception is org.springframework.cloud.stream.binder.BinderException: Exception thrown while building outbound endpoint
2018-06-20 15:08:57.924 INFO [test-service,,,] 29337 --- [ main] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@6e605c34: startup date [Wed Jun 20 15:08:47 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4f824872
2018-06-20 15:08:57.927 INFO [test-service,,,] 29337 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Unregistering application test-service with eureka with status DOWN
2018-06-20 15:08:57.927 WARN [test-service,,,] 29337 --- [ main] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1529478537927, current=DOWN, previous=UP]
2018-06-20 15:08:57.927 INFO [test-service,,,] 29337 --- [ main] com.netflix.discovery.DiscoveryClient : Shutting down DiscoveryClient ...
2018-06-20 15:08:57.927 INFO [test-service,,,] 29337 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_TEST-SERVICE/172.20.10.5:test-service:8080: registering service...
2018-06-20 15:08:57.929 INFO [test-service,,,] 29337 --- [ main] com.netflix.discovery.DiscoveryClient : Unregistering ...
2018-06-20 15:08:57.946 INFO [test-service,,,] 29337 --- [ main] com.netflix.discovery.DiscoveryClient : DiscoveryClient_TEST-SERVICE/172.20.10.5:test-service:8080 - deregister status: 200
2018-06-20 15:08:57.950 INFO [test-service,,,] 29337 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_TEST-SERVICE/172.20.10.5:test-service:8080 - registration status: 204
2018-06-20 15:08:57.955 INFO [test-service,,,] 29337 --- [ main] com.netflix.discovery.DiscoveryClient : Completed shut down of DiscoveryClient
2018-06-20 15:08:57.957 INFO [test-service,,,] 29337 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService 'taskScheduler'
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Unregistering JMX-exposed beans on shutdown
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Unregistering JMX-exposed beans
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Summary on shutdown: springCloudBusOutput
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Summary on shutdown: sleuth
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Summary on shutdown: nullChannel
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Summary on shutdown: springCloudBusInput
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Summary on shutdown: errorChannel
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Summary on shutdown: hystrixStreamOutput
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Summary on shutdown: _org.springframework.integration.errorLogger.handler
2018-06-20 15:08:57.958 INFO [test-service,,,] 29337 --- [ main] o.s.i.monitor.IntegrationMBeanExporter : Summary on shutdown: org.springframework.integration.endpoint.MethodInvokingMessageSource@7779243b
2018-06-20 15:08:57.959 INFO [test-service,,,] 29337 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
2018-06-20 15:08:57.959 INFO [test-service,,,] 29337 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans
2018-06-20 15:08:57.980 INFO [test-service,,,] 29337 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-06-20 15:08:57.980 INFO [test-service,,,] 29337 --- [ main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4ad1ca85: startup date [Wed Jun 20 15:08:45 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4f824872
2018-06-20 15:08:57.980 WARN [test-service,,,] 29337 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4f824872 has not been refreshed yet
at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1068) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1080) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.getTargetBean(ApplicationListenerMethodAdapter.java:280) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:250) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:174) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:137) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:389) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:994) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:961) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$CloseManagementContextListener.propagateCloseIfNecessary(EndpointWebMvcAutoConfiguration.java:309) [spring-boot-actuator-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$CloseManagementContextListener.onApplicationFailedEvent(EndpointWebMvcAutoConfiguration.java:304) [spring-boot-actuator-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$CloseManagementContextListener.onApplicationEvent(EndpointWebMvcAutoConfiguration.java:295) [spring-boot-actuator-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.finished(EventPublishingRunListener.java:100) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.callFinishedListener(SpringApplicationRunListeners.java:79) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.finished(SpringApplicationRunListeners.java:72) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:789) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at io.choerodon.test.TestServiceApplication.main(TestServiceApplication.java:20) [classes/:na]
2018-06-20 15:08:57.988 ERROR [test-service,,,] 29337 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.context.ApplicationContextException: Failed to start bean 'outputBindingLifecycle'; nested exception is org.springframework.cloud.stream.binder.BinderException: Exception thrown while building outbound endpoint
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:50) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:348) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:151) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:114) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at io.choerodon.test.TestServiceApplication.main(TestServiceApplication.java:20) [classes/:na]
Caused by: org.springframework.cloud.stream.binder.BinderException: Exception thrown while building outbound endpoint
at org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:125) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE]
at org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:57) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE]
at org.springframework.cloud.stream.binder.AbstractBinder.bindProducer(AbstractBinder.java:152) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE]
at org.springframework.cloud.stream.binding.BindingService.bindProducer(BindingService.java:124) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE]
at org.springframework.cloud.stream.binding.BindableProxyFactory.bindOutputs(BindableProxyFactory.java:238) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE]
at org.springframework.cloud.stream.binding.OutputBindingLifecycle.start(OutputBindingLifecycle.java:57) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE]
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:175) ~[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
... 14 common frames omitted
Caused by: org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 10000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1232) ~[zkclient-0.9.jar:na]
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:156) ~[zkclient-0.9.jar:na]
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:130) ~[zkclient-0.9.jar:na]
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:76) ~[kafka_2.11-0.10.1.1.jar:na]
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:58) ~[kafka_2.11-0.10.1.1.jar:na]
at kafka.utils.ZkUtils.apply(ZkUtils.scala) ~[kafka_2.11-0.10.1.1.jar:na]
at org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.createTopicAndPartitions(KafkaTopicProvisioner.java:171) ~[spring-cloud-stream-binder-kafka-core-1.2.1.RELEASE.jar:1.2.1.RELEASE]
at org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.createTopicsIfAutoCreateEnabledAndAdminUtilsPresent(KafkaTopicProvisioner.java:153) ~[spring-cloud-stream-binder-kafka-core-1.2.1.RELEASE.jar:1.2.1.RELEASE]
at org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.provisionProducerDestination(KafkaTopicProvisioner.java:108) ~[spring-cloud-stream-binder-kafka-core-1.2.1.RELEASE.jar:1.2.1.RELEASE]
at org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.provisionProducerDestination(KafkaTopicProvisioner.java:60) ~[spring-cloud-stream-binder-kafka-core-1.2.1.RELEASE.jar:1.2.1.RELEASE]
at org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:110) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE]
... 20 common frames omitted
Disconnected from the target VM, address: '127.0.0.1:42855', transport: 'socket'
Process finished with exit code 1