com.facebook.presto.server.PrestoServer Guice 创建错误



我在尝试启动presto服务器时遇到以下错误,如何诊断哪个属性格式不正确或其他原因?谢谢。

配置文件:

coordinator=true
datasources=jmx
http-server.http.port=8080
presto-metastore.db.type=h2
presto-metastore.db.filename=var/db/MetaStore
task.max-memory=1GB
discovery-server.enabled=true
discovery.uri=http://localhost:8080

例外情况是

2013-11-11T11:11:39.582-0800 错误主要 com.facebook.presto.server.PrestoServer Guice 创建错误:

1) 错误:属性前缀为"的约束冲突:环境格式不正确(对于类 io.airlift.node.NodeConfig) at io.airlift.node.NodeModule.configure(NodeModule.java:34)

1 个错误com.google.inject.CreationException: Guice 创建错误:

1) 错误:属性前缀为"的约束冲突:环境格式不正确(对于类 io.airlift.node.NodeConfig) at io.airlift.node.NodeModule.configure(NodeModule.java:34)

1 个错误 at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435) ~[guice-3.0.jar:na] at com.google.inject.internal.InternalInjectorCreator.initializeStatally(InternalInjectorCreator.java:154) ~[guice-3.0.jar:na] at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106) ~[guice-3.0.jar:na] at com.google.inject.Guice.createInjector(Guice.java:95) ~[guice-3.0.jar:na] at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:277) ~[bootstrap-0.84.jar:0.84] at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:137) ~[presto-server-0.52.jar:0.52] at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:50) ~[presto-server-0.52.jar:0.52]

对于非常不友好和无用的错误消息,我们深表歉意。这是我们要修复的事项清单。

错误"环境格式不正确"表示node.environment属性(在node.properties文件中)已设置,但无法匹配以下正则表达式:[a-z0-9][_a-z0-9]* 。换句话说,它必须是小写的,以字母数字字符开头,并且在后续字符中只有字母数字或下划线。

尝试使用更简单的名称,例如 testproduction

并不是说这是安慰,但我在 Centos 上得到了类似的东西:

1) 错误:属性前缀 '' 的约束冲突:环境 可能不为 null(对于类 io.airlift.node.NodeConfig) at io.airlift.node.NodeModule.configure(NodeModule.java:34)

1 错误 com.google.inject.CreationException: Guice 创建错误:

最新更新