[尝试为我的cordapp执行./build/nodes/runnodes时出现以下错误。我要连接到独立Postgresql数据库的一方(Mint)出现此错误:
[ERROR] 01:07:58-0400 [main] subcommands.ValidateConfigurationCli. - Error(s) while parsing node configuration:
- for path: "database.schema": Unknown property 'schema'.
在我的方(Mint)的node.conf文件中是
dataSourceProperties = {
dataSourceClassName = "org.postgresql.ds.PGSimpleDataSource"
dataSource.url = "jdbc:postgresql://localhost:5432/sample_db"
dataSource.user = mint
dataSource.password = my_password
}
database = {
transactionIsolationLevel = READ_COMMITTED
schema = mint
}
# When JDBC driver is not placed into node's 'drivers' directory then add absolute path:
jarDirs = ['/Users/sayefiqbal/Documents/Corda/Metals-cordapp/build/nodes/Mint/drivers/postgresql-42.2.12.jar']
请注意是什么问题。遵循了Corda的文档,但到目前为止没有解决方案。
我想您正在使用Corda的社区版,它没有schema
属性可用。但是,您可以在JDBC URL中指定架构,如下所示:
jdbc:postgresql://localhost:5432/sample_db?currentSchema=mint
有关详细信息,请参见文档:https://docs.corda.net/docs/corda-os/4.4/node-database.html#postgresql。