Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

作业调度平台安装失败 #146

Open
pangziyimei opened this issue Oct 10, 2022 · 2 comments
Open

作业调度平台安装失败 #146

pangziyimei opened this issue Oct 10, 2022 · 2 comments

Comments

@pangziyimei
Copy link

安装作业调度平台组件失败,出现“MountVolume.SetUp failed for volume "timezone-sync-trait-volume-config" : hostPath type check failed: /usr/share/zoneinfo/Asia/Shanghai is not a file”报错。

企业微信截图_20221010134015

@Twwy
Copy link
Collaborator

Twwy commented Oct 10, 2022

hi 您好

  1. 作业平台需要做定时调度,所以依赖时区设置,默认是UTC 0,无法满足调度需求。
  2. 修改时区的方案是利用 pod 的 Volume Mount机制,将宿主机的 /usr/share/zoneinfo/Asia/Shanghai 挂载到 pod 的/etc/localtime 实现的。
  3. 当前问题是 宿主机上 /usr/share/zoneinfo/Asia/Shanghai 文件不存在,导致报错。建议安装 tzdata。

@pangziyimei
Copy link
Author

你好,操作系统Centos 7 ,默认安装tzdata组件,也具体到work节点上查看时区文件,确认文件存在,才发issues。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants