0
点赞
收藏
分享

微信扫一扫

【CDP】CDP 集群通过Knox 访问Yarn Web UI,无法跳转到Flink Web UI 问题解决

扬帆远航_df7c 2023-12-16 阅读 120

一、前言

记录下在CDP 环境中,通过Knox 访问Yarn Web UI,无法跳转到Flink Web UI 的BUG 解决方法。

二、问题复现

  1. 登录 Knox Web UI

在这里插入图片描述

  1. 找到任一 Flink 任务

  2. 点击 ApplicationMaster
    在这里插入图片描述

  3. 跳转 Flink WEB UI 出问题

内容空白,无法正常跳转到Flink WEB UI。
在这里插入图片描述

三、问题原因

yarnui中,tracking UI 调转flink会话被破坏,导致tracking UI的URL没有以斜杠结尾,这使得flink <base> 基础页面错误。

四、解决方法

  1. 确认 knox Knox Gateway Data Directory 的存放路径

在这里插入图片描述

  1. 登录到 knox 安装节点,并跳转到该路径
# knox data dir
cd /mnt/sdb1/knox/gateway/data

cd services/yarnui/2.7.0

里面的文件如下:
在这里插入图片描述

  1. 编辑 rewrite.xml 文件

修改第146行,251行,288行。

在这里插入图片描述

具体如下:

vim rewrite.xml

# 修改第146行
# 原来
<rewrite template="{$frontend[url]}/yarn/proxy/{**}"/>
# 修改后
<rewrite template="{$frontend[url]}/yarn/proxy/{**}/"/>

# 修改第251行
# 原来
<rewrite template="{$frontend[url]}/yarn/proxy/{**}"/>
# 修改后
<rewrite template="{$frontend[url]}/yarn/proxy/{**}/"/>

# 修改第288行
# 原来
<rewrite template="{$frontend[url]}/yarn/proxy/{**}"/>
# 修改后
<rewrite template="{$frontend[url]}/yarn/proxy/{**}/"/>

# 保存
:wq
  1. 重启Knox 服务。
    CM -> 集群 -> Knox -> 操作 -> 重启。

  2. 重新访问Yarn WEB UI
    在这里插入图片描述

可以正常访问,问题解决!

参考

  • https://issues.apache.org/jira/browse/KNOX-2074
  • https://github.com/apache/knox/commit/ef4fd73ca73630721ee9e2790c9104bbccdf85e0
举报

相关推荐

0 条评论