kafka多机部署出错

140order1 kafka1peer0org1
141order2zookeeper2  
142order3zookeeper3kafka2 
143 zookeeper1kafka3peer0org2
144  kafka4peer0org3

我的集群分配如上,当我创建通道的时候出错,显示连接超时,去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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值