我正在尝试使用分布在两台计算机上的节点在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
我已下载了bootstrapper工具。我找不到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
请帮忙。感谢
答案 0 :(得分:0)
在Corda 1中,网络上的一个节点扮演了网络地图节点的角色。因此,不需要自举。
在Corda 3中,没有网络地图节点,因此需要自举。您可以在此处阅读此决定背后的基本原理:https://medium.com/corda/cordas-new-network-map-infrastructure-8c4c248fd7f3。