如何禁止ambari-server.log中显示cloudera地址异常栈的解决方案分享
2023-03-07 09:11:00 时间
是的,今天就来说一下 ambari-server.log 日志中出现上述错误的原因及解决办法。
由于 cloudera 提供的镜像源不对外开放了,所以 ambari 源码中内置的 repo 源地址在 amabri-server 启动时就是加载异常,从而报了这个错误。
这个错误是 WARN 级别,倒不影响 ambari 功能使用,但有些初学者看到此异常还是会心头一紧;或者有基于 Ambari 二次开发的企业,也想把这个异常栈从日志中去除,毕竟很碍眼。
那么如何去除呢?很简单。
修改 hdp stack 下各版本的 repoinfo.xml 文件,将 baseurl 中的 public-repo-1.hortonworks.com 地址去掉即可,或修改为以下内容:
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<reposinfo>
<os family="redhat7">
<repo>
<baseurl></baseurl>
<repoid>HDP-3.1</repoid>
<reponame>HDP</reponame>
<unique>true</unique>
</repo>
<repo>
<baseurl></baseurl>
<repoid>HDP-3.1-GPL</repoid>
<reponame>HDP-GPL</reponame>
<unique>true</unique>
<tags>
<tag>GPL</tag>
</tags>
</repo>
<repo>
<baseurl></baseurl>
<repoid>HDP-UTILS-1.1.0.22</repoid>
<reponame>HDP-UTILS</reponame>
<unique>false</unique>
</repo>
</os>
</reposinfo>
注意:我的系统是 centos7,所以只保留了 redhat7。请根据实际情况,保留对应系统的 reposinfo。
最后,重启 ambari-server,我们会发现图片中的报错消失了。
温馨提示: 与本篇内容相关的文章建议也看一看,地址:Ambari部署HDP时,Select Version时页面数据来源解析。
好了,本篇分享就到此结束了,欢迎大家加我好友一起讨论交流Ambari。
作者介绍: Ambari 资深用户,输出很多技术干货,相关二次开发实战经验丰富,帮助很多人解决疑难问题,录有两门 Ambari 实战课程,学员人数 300+,在圈子里有一定的知名度。来加我好友(create17_)吧,可免费帮你制定 Ambari 学习计划!
---------- END ----------
相关文章
- 在 Go 里用 CGO?这 7 个问题你要关注!
- 9款优秀的去中心化通讯软件 Matrix 的客户端
- 求职数据分析,项目经验该怎么写
- 在OKR中,我看到了数据驱动业务的未来
- 火山引擎云原生大数据在金融行业的实践
- OpenHarmony富设备移植指南(二)—从postmarketOS获取移植资源
- 《数据成熟度指数》报告:64%的企业领袖认为大多数员工“不懂数据”
- OpenHarmony 小型系统兼容性测试指南
- 肯睿中国(Cloudera):2023年企业数字战略三大趋势预测
- 适用于 Linux 的十大命令行游戏
- GNOME 截图工具的新旧截图方式
- System76 即将推出的 COSMIC 桌面正在酝酿大变化
- 2GB 内存 8GB 存储即可流畅运行,Windows 11 极致精简版系统 Tiny11 发布
- 迎接 ecode:一个即将推出的具有全新图形用户界面框架的现代、轻量级代码编辑器
- loongarch架构介绍(三)—地址翻译
- Go 语言怎么解决编译器错误“err is shadowed during return”?
- 敏捷:可能被开发人员遗忘的部分
- Denodo预测2023年数据管理和分析的未来
- 利用数据推动可持续发展
- 在 Vue3 中实现 React 原生 Hooks(useState、useEffect),深入理解 React Hooks 的