【问题标题】:mount through procfd: not a directory: unknown通过 procfd 挂载:不是目录:未知
【发布时间】:2022-12-10 21:54:39
【问题描述】:

我正在尝试将 Kubernetes 中的文件复制到现有目录。我收到错误

caused: mount through procfd: not a directory: unknown 我看过类似的问题,但似乎无法解决。这些是会议

配置图

apiVersion: v1
kind: ConfigMap
metadata:
  name: hdfs-yarn
data:
  yarn-site.xml: |
    <?xml version="1.0" encoding="UTF-8"?>
    ...

这是我的部署 yaml

volumeMounts:
    - mountPath: /opt/druid/conf/druid/cluster/_common/yarn-site.xml
      name: hdfs-volume
      subPath: yarn-site.xml
    - mountPath: /druid/data
      name: data-volume
...
volumes:
    - name: hdfs-volume
      configMap:
        name: hdfs-yarn
        items:
        - key: yarn-site.xml
          path: yarn-site.xml
...

谁能指出这里可能出了什么问题?在此先感谢您的所有帮助。

【问题讨论】:

    标签: kubernetes configmap


    【解决方案1】:

    Kubernetes documentation 声明:

    卷不能安装到其他卷上或与其他卷有硬链接 卷

    不要为卷 hdf 使用一个配置映射——尝试为每个卷使用两个配置映射,让我知道这是否有效。

    volumeMounts:
        - mountPath: /opt/druid/conf/druid/cluster/_common/yarn-site.xml
          name: hdfs-volume
          subPath: yarn-site.xml
        - mountPath: /druid/data
          name: data-volume
    ...
    volumes:
        - name: hdfs-volume
          configMap:
            name: hdfs-yarn
        - name: data-volume
          configMap:
            name:data-yarn 
    

    请参阅此 VolumesConfigmap 文档以获取更多信息

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-27
      • 1970-01-01
      • 2019-08-07
      • 1970-01-01
      • 2014-07-20
      相关资源
      最近更新 更多