【问题标题】:Error starting Apache Drill in Embedded Mode on Windows 10在 Windows 10 上以嵌入式模式启动 Apache Drill 时出错
【发布时间】:2017-06-26 17:50:54
【问题描述】:

我正在尝试在 Windows 10 x64(使用 Oracle JVM 1.8.0_131)上以嵌入式模式启动 Apache Drill 1.10。启动命令时

sqlline.bat -u "jdbc:drill:zk=local"

我得到以下信息:

Error during udf area creation [/C:/Users/<user>/drill/udf/registry] on file system [file:///] (state=,code=0)

所以,经过一番谷歌搜索后,我以这种方式更改了 Drill-override.conf 文件:

drill.exec: {
  cluster-id: "drillbits1",
  zk.connect: "localhost:2181",
  udf: {
    # number of retry attempts to update remote function registry
    # if registry version was changed during update
    retry-attempts: 10,
    directory: {
      # Override this property if custom file system should be used to create remote directories
      # instead of default taken from Hadoop configuration
      fs: "file:///",
      # Set this property if custom absolute root should be used for remote directories
      root: "/c:/work"
    }
  }
}

然后我检查了以下内容:

  • 在文件夹上设置了适当的权限
  • 控制台以管理员身份启动

但我仍然遇到同样的错误:

Error during udf area creation [/c:/work/drill/udf/registry] on file system [file:///] (state=,code=0)

我无法禁用 UDF,因为我没有活动连接。

有什么建议吗?

【问题讨论】:

    标签: apache-drill


    【解决方案1】:

    根据this 链接,似乎与文件夹的所有权有关。 链接中的解决方案详情引用如下

    在您第一次运行 sqlline.bat 之前运行这些命令。

    mkdir %userprofile%\drill

    mkdir %userprofile%\drill\udf

    mkdir %userprofile%\drill\udf\registry

    mkdir %userprofile%\drill\udf\tmp

    mkdir %userprofile%\drill\udf\staging

    takeown /R /F %userprofile%\drill

    【讨论】:

    • 在周五下午浪费了无数个小时来让这个工作,你的小费很有魅力,在 30 秒内就修好了。非常感谢!
    猜你喜欢
    • 2021-07-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多