[英]How to setup composer with fabric + kafka
I'm setting up a Hyperledger Fabric, with: 1 org, 2 orderers, 2 peers, 4 kafkas, 3 zookeepers, 1 certificate authority. 我正在建立一个Hyperledger Fabric,包括:1个org,2个orderers,2个peer,4 kafkas,3个zookeepers,1个证书颁发机构。
I followed the fabric-samples-with-kafka guide, but as I need hyperledger composer as well I added an additional CA to the docker compose file. 我遵循了fabric-samples-with-kafka指南,但由于我需要hyperledger作曲家,我还在docker compose文件中添加了一个额外的CA. After running ./startfabric
all of my containers start logging handshake failures: 2019-06-05 09:56:23.215 UTC [grpc] Printf -> DEBU 20c grpc: Server.Serve failed to complete security handshake from "192.168.96.6:49830": remote error: tls: bad certificate
. 运行./startfabric
后,我的所有容器都开始记录握手失败: 2019-06-05 09:56:23.215 UTC [grpc] Printf -> DEBU 20c grpc: Server.Serve failed to complete security handshake from "192.168.96.6:49830": remote error: tls: bad certificate
。 As this is a handshaking error I believe this is because the CA is setup incorrectly, my CA in the docker compose looks like this 由于这是一个握手错误,我认为这是因为CA设置不正确,我在Docker组成的CA看起来像这样
ca.org1.example.com:
image: hyperledger/fabric-ca:latest
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca.org1.example.com
- FABRIC_CA_SERVER_CSR_CN=ca.org1.example.com
- FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.example.com-cert.pem
- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/071043b1f49c2df2e317c9679e0f15212bdf8ee7a193d021dbd8b3d29709eb5f_sk
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/071043b1f49c2df2e317c9679e0f15212bdf8ee7a193d021dbd8b3d29709eb5f_sk
ports:
- "7054:7054"
# command: bash
command: sh -c 'fabric-ca-server start --ca.certfile $${FABRIC_CA_SERVER_CA_CERTFILE} --ca.keyfile $${FABRIC_CA_SERVER_CA_KEYFILE} -b Admin:adminpw '
# command: sh -c 'fabric-ca-server start -b Admin:adminpw '
volumes:
- ./crypto-config/peerOrganizations/org1.example.com/ca:/etc/hyperledger/fabric-ca-server-config
- ./crypto-config/peerOrganizations/org1.example.com:/etc/hyperledger/fabric-ca-server-config
container_name: ca.org1.example.com
networks:
- byfn
Has anyone been successful in setting up fabric + kafka + composer, and is able to give me some advice? 有没有人成功建立了面料+卡夫卡+作曲家,能给我一些建议吗?
I would not go down this path at all given it looks like you are just starting out. 鉴于你刚刚开始,我根本不会走这条路。 Why? 为什么?
Fabric 1.2 is pretty old; 面料1.2很旧; we are now on Fabric 1.4.1 with 1.4.2 around the corner 我们现在在Fabric 1.4.1上,1.4.2即将到来
Composer is no longer under active development; 作曲家不再处于积极发展之中; this is not marketing for IBM, but https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform is the replacement tool from the core team who built Composer but many facets of the programming model are now part of Fabric and the Fabric SDKs 这不是IBM的营销,但https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform是构建Composer的核心团队的替代工具,但编程模型的许多方面现在都是Fabric和Fabric SDK
Fabric 1.4.1 introduced Raft-based ordering which is much simpler to run and operate than the Kafka-based orderer Fabric 1.4.1引入了基于Raft的订购,它比基于Kafka的订货人更易于运行和操作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.