centos 7.3 fabric kafka模式一直不成功

使用了fabric-samples/balance-transfer 这个项目的例子,配置了2个zookeeper+2个order+2个kafka+4个peer,fabric网络可以正常跑起来

clipboard.png
clipboard.png

curl -s -X POST \
     http://localhost:4000/users \
     -H "content-type: application/x-www-form-urlencoded" \
     -d 'username=Jim&orgName=org1'

能执行注册登陆
执行peer create channl 失败了
http://www.blockchainbrother....
clipboard.png

阅读 3k
2 个回答

root用户登录:

curl -sSL https://get.docker.com/ | sh #因为网络原因可能出错,重新执行一(N)遍
curl -L https://github.com/docker/com...uname -s-uname -m > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
tar xvzf go1.8.3.linux-amd64.tar.gz
mv go /usr/local

systemctl start docker
ps -ef|grep docker

mkdir -p /root/fabric/src/github.com/hyperledger
vi .bash_profile #PATH 添加 /root/fabric/bin GOPATH=/root/fabric export GOPATH

yum install -y git bzip2 gcc gcc-c++ libtool libltdl-dev libtool-ltdl-devel openssl #不一定需要安装这么多

cd /root/fabric/src/github.com/hyperledger
git clone https://github.com/hyperledge...
git clone https://github.com/hyperledge...

以下为安装

go get -u github.com/gpmgo/gopm
gopm get -g -d golang.org/x/tools/cover
gopm get -g -d github.com/axw/gocov/gocov
go install github.com/axw/gocov/gocov
gopm get -g -d github.com/AlekSi/gocov-xml
go install github.com/AlekSi/gocov-xml
gopm get -g -d github.com/golang/protobuf/protoc-gen-go
go install github.com/golang/protobuf/protoc-gen-go

cd /root/fabric/src/github.com/hyperledger/fabric
make docker #因为网络原因可能出错,重新执行一(N)遍

出错的情况下执行:

cp $GOPATH/bin/protoc-gen-go $GOPATH/src/github.com/hyperledger/fabric/build/docker/gotools/bin/
cp $GOPATH/bin/gocov $GOPATH/src/github.com/hyperledger/fabric/build/docker/gotools/bin/
make docker
cd /root/fabric/src/github.com/hyperledger/fabric-ca
make docker

下载源码并编译node6.11:
configure && make && make install

peer create channl这个命令是什么意思啊?channl你没有拼错吧,怎么感觉是channel

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进