kafka多机部署出错

版权声明:本文为博主原创文章,转载请注明出处! https://blog.csdn.net/ASN_forever/article/details/88361688
140 order1   kafka1 peer0org1
141 order2 zookeeper2    
142 order3 zookeeper3 kafka2  
143   zookeeper1 kafka3 peer0org2
144     kafka4 peer0org3

我的集群分配如上,当我创建通道的时候出错,显示连接超时,去kafka节点查看日志,发现以下错误:

Number of insync replicas for partition testchainid-0 is [1], below required minimum [2]

不知道是不是因为配置yaml文件时,里面的extra_hosts中多个不同域名对应了相同的ip导致的:

extra_hosts:
          - "zookeeper1:192.168.89.143"
          - "zookeeper2:192.168.89.141"
          - "zookeeper3:192.168.89.142"
          - "kafka1:192.168.89.140"
          - "kafka2:192.168.89.142"
          - "kafka3:192.168.89.143"
          - "kafka4:192.168.89.144"

今天又出现了这个错误:

2019-03-08 12:32:41.226 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2019-03-08 12:32:41.226 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2019-03-08 12:32:41.237 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 192.168.89.140:7050: getsockopt: connection refused"; Reconnecting to {orderer1.scf.com:7050 <nil>}
2019-03-08 12:32:42.240 UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 192.168.89.140:7050: getsockopt: connection refused"; Reconnecting to {orderer1.scf.com:7050 <nil>}
2019-03-08 12:32:43.897 UTC [grpc] Printf -> DEBU 005 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 192.168.89.140:7050: getsockopt: connection refused"; Reconnecting to {orderer1.scf.com:7050 <nil>}
Error: failed to create deliver client: orderer client failed to connect to orderer1.scf.com:7050: failed to create new connection: context deadline exceeded

猜你喜欢

转载自blog.csdn.net/ASN_forever/article/details/88361688