corda - 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 1 中,网络上的一个节点扮演了网络地图节点的角色。因此,不需要自举。
在 Corda 3 中,没有网络映射节点,因此需要引导。您可以在此处阅读有关此决定背后的理由:https ://medium.com/corda/cordas-new-network-map-infrastructure-8c4c248fd7f3 。
推荐阅读
- javascript - 弹出模态并跳转到内部锚点
- less - WebStorm 将工作语句 $@ 视为 .less 文件中的错误
- jquery - 为什么重用片段时事件监听器会消失?
- sqlite - 无法完全读取 Firefox OS indexeddb 进行备份
- c# - 为什么用预制件替换游戏对象时,预制件位置有点靠后,而不是完全在游戏对象位置上?
- c++ - 在 C++ 中声明向量时出现意外错误
- python - Python + Pygame;screen.fill() 崩溃窗口
- rest - 颤振http帖子“类型'int'不是类型转换中'String'类型的子类型”
- linux - 为什么 echo $'\n' 打印 2 个新行?
- redux - 获取 'bundle.js:1 Uncaught SyntaxError: Unexpected token '<' in react/redux app