尝试启动 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
异常(exception)是
2013-11-11T11:11:39.582-0800 ERROR main com.facebook.presto.server.PrestoServer Guice 创建错误:
1) 错误:带有属性前缀 '' 的约束违规:环境格式错误(对于 io.airlift.node.NodeConfig 类)
在 io.airlift.node.NodeModule.configure(NodeModule.java:34)
1 错误
com.google.inject.CreationException:Guice 创建错误:
1) 错误:带有属性前缀 '' 的约束违规:环境格式错误(对于 io.airlift.node.NodeConfig 类)
在 io.airlift.node.NodeModule.configure(NodeModule.java:34)
1 错误
在 com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435) ~[guice-3.0.jar:na]
在 com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154) ~[guice-3.0.jar:na]
在 com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106) ~[guice-3.0.jar:na]
在 com.google.inject.Guice.createInjector(Guice.java:95) ~[guice-3.0.jar:na]
在 io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:277) ~[bootstrap-0.84.jar:0.84]
在 com.facebook.presto.server.PrestoServer.run(PrestoServer.java:137) ~[presto-server-0.52.jar:0.52]
在 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]*
.换句话说,它必须是小写的,以字母数字字符开头,并且在后续字符中只有字母数字或下划线。
尝试使用更简单的名称,例如 test
或 production
.
关于presto - com.facebook.presto.server.PrestoServer Guice 创建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19915439/