presto主节点日志启动信息出现以下error:
2017-07-12T14:31:30.651+0800 ERROR Discovery-0 io.airlift.discovery.client.CachingServiceSelector Cannot connect to discovery server for refresh (presto/general): Lookup of presto failed for http://master135:8090/v1/service/presto/general
2017-07-12T14:31:31.729+0800 WARN http-client-shared-27 com.facebook.presto.metadata.RemoteNodeState Error fetching node state from http://10.92.100.135:8090/v1/info/state: Server refused connection: http://10.92.100.135:8090/v1/info/state
2017-07-12T14:31:32.322+0800 ERROR Discovery-0 io.airlift.discovery.client.CachingServiceSelector Cannot connect to discovery server for refresh (collector/general): Lookup of collector failed for http://master135:8090/v1/service/collector/general
2017-07-17T01:36:44.793+0800 INFO main com.facebook.presto.server.PrestoServer ======== SERVER STARTED ========
2017-07-17T17:25:35.517+0800 ERROR Announcer-0 io.airlift.discovery.client.Announcer Cannot connect to discovery server for announce: Announcement failed for http://mastar.comtop:8090
2017-07-17T17:25:35.518+0800 ERROR Announcer-0 io.airlift.discovery.client.Announcer Service announcement failed after 8.84ms. Next request will happen within 0.00s
2017-07-17T17:25:35.524+0800 ERROR Announcer-1 io.airlift.discovery.client.Announcer Service announcement failed after 1.71ms. Next request will happen within 1.00ms
.......
主要原因:discovery 服务无法解析config.properties配置中的discovery.uri
Google后看到presto共享者的回答:
解决办法:将config.properties配置中discovery.uri域名换成ip即可。