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

标签 presto

尝试启动 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]* .换句话说,它必须是小写的,以字母数字字符开头,并且在后续字符中只有字母数字或下划线。

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

关于presto - com.facebook.presto.server.PrestoServer Guice 创建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19915439/

相关文章:

presto - 如何将存储为 bigint 的 Java 时间戳转换为 Presto 中的时间戳?

sql - Presto SQL date_format 提取一年中的第几周

amazon-s3 - 用于高效 Athena 查询的 S3 分区(文件大小)

json - AWS Athena 将结构数组导出到 JSON

SQL:取消嵌套数组,在 aws athena 中保持相同的行数

sql - 如何从sql中的时间戳中仅提取小时?

sql - 区分表和 View 的命令

mysql - 如何将 Presto 数据库连接到 MySQL

Presto:如何使用当前日期和时区指定时间间隔

sql - Presto中包含 ' '字符的 key 的JSON_EXTRACT问题