You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mapr发行版下配置Apache Drill读取XML文件遇UI错误求助

Mapr发行版Apache Drill配置XML文件读取方法

正确配置步骤

  • 登录Drill Web UI(默认地址:http://<drill集群节点IP>:8047)
  • 切换到Storage标签页
  • 若未找到XML存储插件,点击页面右侧的Add Plugin;若已有禁用的XML插件,点击其右侧的Update

标准XML存储插件配置(JSON格式)

替换默认配置为以下内容,注意修改workspaces.root.location为你的XML文件实际路径(MaprFS路径请使用mapr:///前缀):

{
  "type": "xml",
  "enabled": true,
  "connection": "file:///",
  "config": {
    "ignoreNamespaces": true,
    "readOuterElement": true,
    "trimValues": true
  },
  "workspaces": {
    "root": {
      "location": "/mapr/your-cluster/path/to/xml-files",
      "writable": false,
      "defaultInputFormat": "xml"
    }
  },
  "formats": {
    "xml": {
      "type": "xml",
      "extensions": [".xml"],
      "ignoreNamespaces": true
    }
  }
}

常见报错排查

  • 检查JSON格式是否合法:确保括号、引号、逗号完全匹配,UI报错大概率是语法错误
  • 验证文件路径权限:Drill运行用户需具备XML文件所在路径的读取权限
  • 确认MaprFS路径格式:使用mapr:///开头而非本地文件路径,避免Drill无法识别集群存储

内容的提问来源于stack exchange,提问作者Abdelilah Sabri

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.10 08:25:29