gpt4 book ai didi

apache-spark - 无法在Kubernetes POD上部署Spark历史记录服务器

转载 作者:行者123 更新时间:2023-12-02 12:25:08 25 4
gpt4 key购买 nike

我正在尝试在kubernetes POD上部署Spark历史记录服务器。为此,我正在使用以下命令集:

helm repo add stable https://kubernetes-charts.storage.googleapis.com
helm install stable/spark-history-server --generate-name
但是这样做时,我面临的问题是以下错误日志:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedMount 7m51s (x129 over 3h31m) kubelet, aks-agentpool-20240184-1 (combined from similar events): MountVolume.SetUp failed for volume "nfs-pv" : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/2bc91c0b-a9e8-4af6-9a6a-8e4781079afb/volumes/kubernetes.io~nfs/nfs-pv --scope -- mount -t nfs spark-history-server-1599813147-nfs.default.svc.cluster.local:/ /var/lib/kubelet/pods/2bc91c0b-a9e8-4af6-9a6a-8e4781079afb/volumes/kubernetes.io~nfs/nfs-pv
Output: Running scope as unit run-re958022a7250453abcd26d58efcbf360.scope.
mount.nfs: Failed to resolve server spark-history-server-1599813147-nfs.default.svc.cluster.local: Name or service not known
Warning FailedMount 2m51s (x17 over 3h31m) kubelet, aks-agentpool-20240184-1 Unable to attach or mount volumes: unmounted volumes=[data], unattached volumes=[spark-history-server-1599813147-token-bglz7 data]: timed out waiting for the condition
任何帮助将不胜感激!

最佳答案

不幸的是,这是known issues之一:

Kubernetes installs do not configure the nodes' resolv.conf files touse the cluster DNS by default, because that process is inherentlydistribution-specific. This should probably be implemented eventually.


有一些解决方法,但是您可以选择:
  • 如果通过ClusterIP(而不是域名)指定NFS,则可以成功挂载NFS。您可以找到一个示例here
  • 在每个节点上手动更新resolv.conv
  • 在所有节点上以/etc/hosts手动写入服务名称。
  • 关于apache-spark - 无法在Kubernetes POD上部署Spark历史记录服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63847774/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com