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

相关文章

Maven 配置中的 <mirror>绕过 HTTP 阻断机制的方法

《Maven配置中的<mirror>绕过HTTP阻断机制的方法》:本文主要介绍Maven配置中的<mirror>绕过HTTP阻断机制的方法,本文给大家分享问题原因及解决方案,感兴趣的朋友一... 目录一、问题场景:升级 Maven 后构建失败二、解决方案:通过 <mirror> 配置覆盖默认行为1. 配置示

Linux中修改Apache HTTP Server(httpd)默认端口的完整指南

《Linux中修改ApacheHTTPServer(httpd)默认端口的完整指南》ApacheHTTPServer(简称httpd)是Linux系统中最常用的Web服务器之一,本文将详细介绍如何... 目录一、修改 httpd 默认端口的步骤1. 查找 httpd 配置文件路径2. 编辑配置文件3. 保存

Windows Server 2025 搭建NPS-Radius服务器的步骤

《WindowsServer2025搭建NPS-Radius服务器的步骤》本文主要介绍了通过微软的NPS角色实现一个Radius服务器,身份验证和证书使用微软ADCS、ADDS,具有一定的参考价... 目录简介示意图什么是 802.1X?核心作用802.1X的组成角色工作流程简述802.1X常见应用802.

C++ HTTP框架推荐(特点及优势)

《C++HTTP框架推荐(特点及优势)》:本文主要介绍C++HTTP框架推荐的相关资料,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录1. Crow2. Drogon3. Pistache4. cpp-httplib5. Beast (Boos

SQL Server身份验证模式步骤和示例代码

《SQLServer身份验证模式步骤和示例代码》SQLServer是一个广泛使用的关系数据库管理系统,通常使用两种身份验证模式:Windows身份验证和SQLServer身份验证,本文将详细介绍身份... 目录身份验证方式的概念更改身份验证方式的步骤方法一:使用SQL Server Management S

Spring AI 实现 STDIO和SSE MCP Server的过程详解

《SpringAI实现STDIO和SSEMCPServer的过程详解》STDIO方式是基于进程间通信,MCPClient和MCPServer运行在同一主机,主要用于本地集成、命令行工具等场景... 目录Spring AI 实现 STDIO和SSE MCP Server1.新建Spring Boot项目2.a

SQL Server中的PIVOT与UNPIVOT用法具体示例详解

《SQLServer中的PIVOT与UNPIVOT用法具体示例详解》这篇文章主要给大家介绍了关于SQLServer中的PIVOT与UNPIVOT用法的具体示例,SQLServer中PIVOT和U... 目录引言一、PIVOT:将行转换为列核心作用语法结构实战示例二、UNPIVOT:将列编程转换为行核心作用语

SpringBoot中HTTP连接池的配置与优化

《SpringBoot中HTTP连接池的配置与优化》这篇文章主要为大家详细介绍了SpringBoot中HTTP连接池的配置与优化的相关知识,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一... 目录一、HTTP连接池的核心价值二、Spring Boot集成方案方案1:Apache HttpCl

Spring Boot Controller处理HTTP请求体的方法

《SpringBootController处理HTTP请求体的方法》SpringBoot提供了强大的机制来处理不同Content-Type​的HTTP请求体,这主要依赖于HttpMessageCo... 目录一、核心机制:HttpMessageConverter​二、按Content-Type​处理详解1.

使用easy connect之后,maven无法使用,原来需要配置-Djava.net.preferIPv4Stack=true问题

《使用easyconnect之后,maven无法使用,原来需要配置-Djava.net.preferIPv4Stack=true问题》:本文主要介绍使用easyconnect之后,maven无法... 目录使用easGWowCy connect之后,maven无法使用,原来需要配置-DJava.net.pr