首页 > 解决方案 > AWS 上的 Corda 分布式

问题描述

我正在尝试在 AWS 上设置 Corda,节点分布在两台机器上。我一直在遵循这里的说明: https ://docs.corda.net/tutorial-cordapp.html#running-nodes-across-machines

我使用 AWS Marketplace https://docs.corda.net/aws-vm.html中的 Corda VM 在 AWS 上设置了两台服务器

我注意到这似乎是 Corda v1.0

我已经下载了引导程序工具。我找不到 v1.0 的那个所以我下载了 v3.0 的那个。

当我运行它时,我收到以下错误:

Bootstrapping local network in /home/ubuntu/dev/cordapp-example/kotlin-source/build/nodes
Nodes found in the following sub-directories: [PartyB, PartyA, Controller, PartyC]
Waiting for all nodes to generate their node-info files...
Exception in thread "main" java.lang.IllegalStateException: Node in PartyB exited with 1 when generating its node-info - see logs in /home/ubuntu/dev/cordapp-example/kotlin-source/build/nodes/PartyB/logs
    at net.corda.nodeapi.internal.network.NetworkBootstrapper$gatherNodeInfoFiles$future$1.invoke(NetworkBootstrapper.kt:136)
    at net.corda.nodeapi.internal.network.NetworkBootstrapper$gatherNodeInfoFiles$future$1.invoke(NetworkBootstrapper.kt:44)
    at net.corda.core.internal.concurrent.ValueOrException$DefaultImpls.capture(CordaFutureImpl.kt:107)
    at net.corda.core.internal.concurrent.OpenFuture$DefaultImpls.capture(CordaFutureImpl.kt)
    at net.corda.core.internal.concurrent.CordaFutureImpl.capture(CordaFutureImpl.kt:119)
    at net.corda.core.internal.concurrent.CordaFutureImplKt$fork$$inlined$also$lambda$1.run(CordaFutureImpl.kt:22)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

日志文件显示以下内容:

Invalid command line arguments: just-generate-node-info is not a recognized option

Option                              Description                          
------                              -----------                          
--base-directory                    The node working directory where all 
                                  the files are kept (default: .)    
--config-file                       The path to the config file (default:
                                  node.conf)                         
--help                                                                   
--initial-registration              Start initial node registration with 
                                  Corda network to obtain certificate
                                  from the permissioning server.     
--log-to-console                    If set, prints logging to the console
                                  as well as to a file.              
--logging-level <[ERROR,WARN,INFO,  Enable logging at this level and     
DEBUG,TRACE]>                       higher (default: INFO)             
--no-local-shell                    Do not start the embedded shell      
                                  locally.                           
--sshd                              Enables SSHD server for node         
                                  administration.                    
--version                           Print the version and exit 

请你帮忙。谢谢

标签: corda

解决方案


在 Corda 1 中,网络上的一个节点扮演了网络地图节点的角色。因此,不需要自举。

在 Corda 3 中,没有网络映射节点,因此需要引导。您可以在此处阅读有关此决定背后的理由:https ://medium.com/corda/cordas-new-network-map-infrastructure-8c4c248fd7f3 。


推荐阅读