0

尝试在 AWS CDH4 集群上嵌入发现服务器的 Presto 协调器服务器

配置属性:

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

当服务器启动时,它无法注册自己的发现(相关日志):

2013-11-08T19:38:38.193+0000     WARN   main    Bootstrap   Warning: Configuration property 'discovery.uri' is deprecated and should not be used
2013-11-08T19:38:38.968+0000     INFO   main    Bootstrap   discovery-server.enabled                                  false                             true
2013-11-08T19:38:38.975+0000     INFO   main    Bootstrap   discovery.uri                                             null                              http://ip-10-0-0-11:8000          Discovery service base URI
2013-11-08T19:38:40.916+0000    ERROR   Discovery-0 io.airlift.discovery.client.CachingServiceSelector  Cannot connect to discovery server for refresh (collector/general): Lookup of collector failed for http://ip-10-0-0-11:8000/v1/service/collector/general
2013-11-08T19:38:42.556+0000    ERROR   Discovery-1 io.airlift.discovery.client.CachingServiceSelector  Cannot connect to discovery server for refresh (presto/general): Lookup of presto failed for http://ip-10-0-0-11:8000/v1/service/presto/general
2013-11-08T19:38:43.854+0000     INFO   main    org.eclipse.jetty.server.AbstractConnector  Started SelectChannelConnector@0.0.0.0:8000

尝试也运行独立的发现服务器,同样的效果。看起来在注册尝试后启动了侦听器。

4

1 回答 1

4

我想知道是否有人会在日志中注意到这一点:) 这实际上不是问题。出现该错误是因为发现客户端在发现服务器准备好之前启动。不久之后,您会在日志中看到“刷新成功”,这表明它正在工作。我们最终会修复日志消息,但这纯粹是一个表面问题。

于 2013-11-08T21:54:54.933 回答