1.具体环境搭建,示例如何运行请参考
http://www.cnblogs.com/studyzy/p/7437157.html
2.
Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable
这个问题具体原因不清楚,我这边的解决方式是,保证image和fabric代码的branch版本一致
代码branch为1.1.0
release-1.1
remotes/origin/HEAD -> origin/release-1.1
remotes/origin/feature/ca
remotes/origin/feature/convergence
remotes/origin/master
remotes/origin/release-1.0
remotes/origin/release-1.1
remotes/origin/v0.6
remotes/origin/v1.0.0-preview
对应的image版本为
hyperledger/fabric-ca latest 72617b4fa9b4 2 weeks ago 299MB
hyperledger/fabric-ca x86_64-1.1.0 72617b4fa9b4 2 weeks ago 299MB
hyperledger/fabric-tools latest b7bfddf508bc 2 weeks ago 1.46GB
hyperledger/fabric-tools x86_64-1.1.0 b7bfddf508bc 2 weeks ago 1.46GB
hyperledger/fabric-orderer latest ce0c810df36a 2 weeks ago 180MB
hyperledger/fabric-orderer x86_64-1.1.0 ce0c810df36a 2 weeks ago 180MB
hyperledger/fabric-peer latest b023f9be0771 2 weeks ago 187MB
hyperledger/fabric-peer x86_64-1.1.0 b023f9be0771 2 weeks ago 187MB
hyperledger/fabric-javaenv latest 82098abb1a17 2 weeks ago 1.52GB
hyperledger/fabric-javaenv x86_64-1.1.0 82098abb1a17 2 weeks ago 1.52GB
hyperledger/fabric-ccenv latest c8b4909d8d46 2 weeks ago 1.39GB
hyperledger/fabric-ccenv x86_64-1.1.0 c8b4909d8d46 2 weeks ago 1.39GB
hyperledger/fabric-baseos x86_64-0.4.6 220e5cf3fb7f 6 weeks ago 151MB
hyperledger/fabric-kafka latest cf09c5534ef9 5 months ago 1.37GB
hyperledger/fabric-kafka x86_64-1.1.0-preview cf09c5534ef9 5 months ago 1.37GB
hyperledger/fabric-tools x86_64-1.0.0 0403fd1c72c7 8 months ago 1.32GB
hyperledger/fabric-couchdb latest 2fbdbf3ab945 8 months ago 1.48GB
hyperledger/fabric-couchdb x86_64-1.0.0 2fbdbf3ab945 8 months ago 1.48GB
hyperledger/fabric-zookeeper latest e545dbf1c6af 8 months ago 1.31GB
hyperledger/fabric-zookeeper x86_64-1.0.0 e545dbf1c6af 8 months ago 1.31GB
3. 最后一个坑
ause process failed = kafka: insufficient data to decode packet, more bytes expected
2018-04-04 04:02:12.000 UTC [orderer/consensus/kafka] func1 -> CRIT 74c Unable to decode a Kafka packet. Usually, this indicates that the Kafka.Version specified in the orderer configuration is incorrectly set to a version which is newer than the actual Kafka broker version.
kafka 的image版本为为x86_64-1.1.0-preview ,我下载的时候没有x86_64-1.1.0的版本,所以只是下载了1.0.0导致了这个问题
ps: 在跑示例的时候gopath路径一定要设置正确