Cannot connect to discovery server for announce: Announcement failed for http://hadoop102:8881

本文主要是介绍Cannot connect to discovery server for announce: Announcement failed for http://hadoop102:8881,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

linux下启动Presto报错:Cannot connect to discovery server for announce: Announcement failed for http://hadoop102:8881

在虚拟机hadoop103启动时报错

[lqs@hadoop103 presto]$ bin/launcher run

报错内容如下:

hadoop103:34966
2021-12-01T12:59:12.646+0800	ERROR	Discovery-0	io.airlift.discovery.client.CachingServiceSelector	Cannot connect to discovery server for refresh (presto/general): Lookup of presto failed for http://hadoop102:8881/v1/service/presto/general
2021-12-01T12:59:12.809+0800	ERROR	Discovery-4	io.airlift.discovery.client.CachingServiceSelector	Cannot connect to discovery server for refresh (collector/general): Lookup of collector failed for http://hadoop102:8881/v1/service/collector/general

对应图片:
报了这个错后,后面持续循环输出一下信息报了这个错后,后面持续循环输出一下信息

2021-12-01T12:59:30.212+0800	ERROR	Announcer-0	io.airlift.discovery.client.Announcer	Cannot connect to discovery server for announce: Announcement failed for http://hadoop102:8881
2021-12-01T12:59:30.215+0800	ERROR	Announcer-0	io.airlift.discovery.client.Announcer	Service announcement failed after 71.59ms. Next request will happen within 0.00s
2021-12-01T12:59:30.232+0800	ERROR	Announcer-1	io.airlift.discovery.client.Announcer	Service announcement failed after 8.78ms. Next request will happen within 1.00ms
2021-12-01T12:59:30.239+0800	ERROR	Announcer-1	io.airlift.discovery.client.Announcer	Service announcement failed after 3.46ms. Next request will happen within 2.00ms
2021-12-01T12:59:30.245+0800	ERROR	Announcer-3	io.airlift.discovery.client.Announcer	Service announcement failed after 1.71ms. Next request will happen within 4.00ms
2021-12-01T12:59:30.257+0800	ERROR	Announcer-2	io.airlift.discovery.client.Announcer	Service announcement failed after 2.22ms. Next request will happen within 8.00ms
2021-12-01T12:59:30.278+0800	ERROR	Announcer-1	io.airlift.discovery.client.Announcer	Service announcement failed after 4.38ms. Next request will happen within 16.00ms
2021-12-01T12:59:30.314+0800	ERROR	Announcer-3	io.airlift.discovery.client.Announcer	Service announcement failed after 2.77ms. Next request will happen within 32.00ms
2021-12-01T12:59:30.381+0800	ERROR	Announcer-2	io.airlift.discovery.client.Announcer	Service announcement failed after 2.12ms. Next request will happen within 64.00ms
2021-12-01T12:59:30.512+0800	ERROR	Announcer-1	io.airlift.discovery.client.Announcer	Service announcement failed after 1.85ms. Next request will happen within 128.00ms
2021-12-01T12:59:30.771+0800	ERROR	Announcer-3	io.airlift.discovery.client.Announcer	Service announcement failed after 1.73ms. Next request will happen within 256.00ms
2021-12-01T12:59:31.286+0800	ERROR	Announcer-2	io.airlift.discovery.client.Announcer	Service announcement failed after 3.23ms. Next request will happen within 512.00ms
2021-12-01T12:59:32.288+0800	ERROR	Announcer-1	io.airlift.discovery.client.Announcer	Service announcement failed after 1.36ms. Next request will happen within 1000.00ms
2021-12-01T12:59:33.290+0800	ERROR	Announcer-3	io.airlift.discovery.client.Announcer	Service announcement failed after 1.41ms. Next request will happen within 1000.00ms
2021-12-01T12:59:34.292+0800	ERROR	Announcer-2	io.airlift.discovery.client.Announcer	Service announcement failed after 1.30ms. Next request will happen within 1000.00ms
2021-12-01T12:59:35.297+0800	ERROR	Announcer-1	io.airlift.discovery.client.Announcer	Service announcement failed after 4.38ms. Next request will happen within 1000.00ms
2021-12-01T12:59:36.301+0800	ERROR	Announcer-3	io.airlift.discovery.client.Announcer	Service announcement failed after 2.88ms. Next request will happen within 1000.00ms
2021-12-01T12:59:37.304+0800	ERROR	Announcer-2	io.airlift.discovery.client.Announcer	Service announcement failed after 1.98ms. Next request will happen within 1000.00ms
2021-12-01T12:59:38.308+0800	ERROR	Announcer-1	io.airlift.discovery.client.Announcer	Service announcement failed after 3.81ms. Next request will happen within 1000.00ms
2021-12-01T12:59:39.310+0800	ERROR	Announcer-3	io.airlift.discovery.client.Announcer	Service announcement failed after 1.51ms. Next request will happen within 1000.00ms

报错截图如下:
在这里插入图片描述

原因分析:

这是因为我们没有启动第一个对应节点的原因,这里启动的是第二个节点,为此我们只需要在第一个节点启动,然后再来这个节点启动就可以了


解决方案:

第一个节点启动成功信息如下

2021-12-01T13:12:43.701+0800	INFO	main	com.facebook.presto.metadata.StaticCatalogStore	-- Added catalog hive using connector hive-hadoop2 --
2021-12-01T13:12:43.702+0800	INFO	main	com.facebook.presto.execution.resourceGroups.InternalResourceGroupManager	-- Loading resource group configuration manager --
2021-12-01T13:12:43.703+0800	INFO	main	com.facebook.presto.execution.resourceGroups.InternalResourceGroupManager	-- Loaded resource group configuration manager legacy --
2021-12-01T13:12:43.703+0800	INFO	main	com.facebook.presto.security.AccessControlManager	-- Loading system access control --
2021-12-01T13:12:43.704+0800	INFO	main	com.facebook.presto.security.AccessControlManager	-- Loaded system access control allow-all --
2021-12-01T13:12:43.754+0800	INFO	main	com.facebook.presto.server.PrestoServer	======== SERVER STARTED ========

出现以上内容表示第一节点启动成功(接图如下:)
在这里插入图片描述

第二个节点启动成功信息如下:

2021-12-01T13:15:20.798+0800	INFO	main	Bootstrap	hive.allow-add-column                              false          false                      Allow Hive connector to add column
2021-12-01T13:15:20.798+0800	INFO	main	Bootstrap	hive.allow-drop-column                             false          false                      Allow Hive connector to drop column
2021-12-01T13:15:20.798+0800	INFO	main	Bootstrap	hive.allow-drop-table                              false          false                      Allow Hive connector to drop table
2021-12-01T13:15:20.798+0800	INFO	main	Bootstrap	hive.allow-rename-column                           false          false                      Allow Hive connector to rename column
2021-12-01T13:15:20.798+0800	INFO	main	Bootstrap	hive.allow-rename-table                            false          false                      Allow Hive connector to rename table
2021-12-01T13:15:20.798+0800	INFO	main	Bootstrap	hive.security                                      legacy         legacy
2021-12-01T13:15:21.821+0800	INFO	main	com.facebook.presto.metadata.StaticCatalogStore	-- Added catalog hive using connector hive-hadoop2 --
2021-12-01T13:15:21.824+0800	INFO	main	com.facebook.presto.security.AccessControlManager	-- Loading system access control --
2021-12-01T13:15:21.824+0800	INFO	main	com.facebook.presto.security.AccessControlManager	-- Loaded system access control allow-all --
2021-12-01T13:15:21.872+0800	INFO	main	com.facebook.presto.server.PrestoServer	======== SERVER STARTED ========

启动成功截图如下:

在这里插入图片描述

这篇关于Cannot connect to discovery server for announce: Announcement failed for http://hadoop102:8881的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/210765

相关文章

Spring Boot 整合 SSE的高级实践(Server-Sent Events)

《SpringBoot整合SSE的高级实践(Server-SentEvents)》SSE(Server-SentEvents)是一种基于HTTP协议的单向通信机制,允许服务器向浏览器持续发送实... 目录1、简述2、Spring Boot 中的SSE实现2.1 添加依赖2.2 实现后端接口2.3 配置超时时

SQL server配置管理器找不到如何打开它

《SQLserver配置管理器找不到如何打开它》最近遇到了SQLserver配置管理器打不开的问题,尝试在开始菜单栏搜SQLServerManager无果,于是将自己找到的方法总结分享给大家,对SQ... 目录方法一:桌面图标进入方法二:运行窗口进入方法三:查找文件路径方法四:检查 SQL Server 安

解决SpringBoot启动报错:Failed to load property source from location 'classpath:/application.yml'

《解决SpringBoot启动报错:Failedtoloadpropertysourcefromlocationclasspath:/application.yml问题》这篇文章主要介绍... 目录在启动SpringBoot项目时报如下错误原因可能是1.yml中语法错误2.yml文件格式是GBK总结在启动S

python连接本地SQL server详细图文教程

《python连接本地SQLserver详细图文教程》在数据分析领域,经常需要从数据库中获取数据进行分析和处理,下面:本文主要介绍python连接本地SQLserver的相关资料,文中通过代码... 目录一.设置本地账号1.新建用户2.开启双重验证3,开启TCP/IP本地服务二js.python连接实例1.

Nginx中配置HTTP/2协议的详细指南

《Nginx中配置HTTP/2协议的详细指南》HTTP/2是HTTP协议的下一代版本,旨在提高性能、减少延迟并优化现代网络环境中的通信效率,本文将为大家介绍Nginx配置HTTP/2协议想详细步骤,需... 目录一、HTTP/2 协议概述1.HTTP/22. HTTP/2 的核心特性3. HTTP/2 的优

使用Python自建轻量级的HTTP调试工具

《使用Python自建轻量级的HTTP调试工具》这篇文章主要为大家详细介绍了如何使用Python自建一个轻量级的HTTP调试工具,文中的示例代码讲解详细,感兴趣的小伙伴可以参考一下... 目录一、为什么需要自建工具二、核心功能设计三、技术选型四、分步实现五、进阶优化技巧六、使用示例七、性能对比八、扩展方向建

使用Python实现快速搭建本地HTTP服务器

《使用Python实现快速搭建本地HTTP服务器》:本文主要介绍如何使用Python快速搭建本地HTTP服务器,轻松实现一键HTTP文件共享,同时结合二维码技术,让访问更简单,感兴趣的小伙伴可以了... 目录1. 概述2. 快速搭建 HTTP 文件共享服务2.1 核心思路2.2 代码实现2.3 代码解读3.

mysql出现ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)的解决方法

《mysql出现ERROR2003(HY000):Can‘tconnecttoMySQLserveron‘localhost‘(10061)的解决方法》本文主要介绍了mysql出现... 目录前言:第一步:第二步:第三步:总结:前言:当你想通过命令窗口想打开mysql时候发现提http://www.cpp

SQL Server清除日志文件ERRORLOG和删除tempdb.mdf

《SQLServer清除日志文件ERRORLOG和删除tempdb.mdf》数据库再使用一段时间后,日志文件会增大,特别是在磁盘容量不足的情况下,更是需要缩减,以下为缩减方法:如果可以停止SQLSe... 目录缩减 ERRORLOG 文件(停止服务后)停止 SQL Server 服务:找到错误日志文件:删除

Windows Server服务器上配置FileZilla后,FTP连接不上?

《WindowsServer服务器上配置FileZilla后,FTP连接不上?》WindowsServer服务器上配置FileZilla后,FTP连接错误和操作超时的问题,应该如何解决?首先,通过... 目录在Windohttp://www.chinasem.cnws防火墙开启的情况下,遇到的错误如下:无法与