Hyperledger面料& Composer - 多对等部署

时间:2018-02-15 22:37:42

标签: hyperledger-fabric hyperledger-composer

我创建了3个Org,其中包含3个对等点(每个1个对等点),3个CA& 1 Orderer。所有这些都连接在一个通道上。我能够把这个网络带上去在Hyperledger Fabric上运行。我还通过部署结构样本链代码进行了测试。它通过安装链代码部署在所有3个对等端上,查询链代码功能正常工作。 我为具有3个对等管理卡的相同3个组织配置了一个作曲器模块及其相应的连接配置文件,所有3个组织的签名策略作为签名授权。当我部署了作曲家.bna时失败并出现以下错误

⠸ Starting business network definition. This may take a minute...(node:29523) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: The event hub has not been connected to the event source
(node:29523) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: The event hub has not been connected to the event source
✖ Starting business network definition. This may take a minute...
Error: Error trying to instantiate composer runtime. Error: The event hub has not been connected to the event source

请告知多Org Fabric& amp;解决方案作曲家设置

2 个答案:

答案 0 :(得分:2)

会检查您的连接配置文件 - 特别是eventURL - 您不应该在用于构建可以进行交易的业务网卡的连接配置文件中包含来自“其他组织”的对等方的"peers": [ { "requestURL": "grpcs://hostname:9051", "eventURL": "grpcs://localhost:9053", "hostnameOverride": "peer0.org.domain.abc", "cert": "-----BEGIN CERTIFICATE-----\nMblahCCAfe....QNH\n3spjHtiblfJekAgO78lvGEY25Lw=\n-----END CERTIFICATE-----\n" }, { "requestURL": "grpcs://hostname:10051", "eventURL": "grpcs://localhost:10053", "hostnameOverride": "peer1.org.domain.abc", "cert": "-----BEGIN CERTIFICATE-----\nMIICUD....NH\n3jHtiblfJekxh8lvGEY25Lw=\n-----END CERTIFICATE-----\n" }, { "requestURL": "grpcs://hostname:14051", "hostnameOverride": "peer0.other.domain.abc", "cert": "-----BEGIN CERTIFICATE-----\nMIICVssC....4nR9w==\n-----END CERTIFICATE-----\n" }, { "requestURL": "grpcs://hostname:15051", "hostnameOverride": "peer1.other.domain.abc", "cert": "-----BEGIN CERTIFICATE-----\nMIIfDT......R9w==\n-----END CERTIFICATE-----\n" } ] 商业网络。例如

public class Main extends Application {

public static void main(String[] args) {
    launch(args);
}

@Override
public void start(Stage primaryStage) throws Exception {
    Example e = new Example();
    e.start();
}
}

答案 1 :(得分:0)

我从连接配置文件中删除了eventurl并且它有效。谢谢你的回复。