gpt4 book ai didi

apache-drill - 在 Windows 10 上以嵌入式模式启动 Apache Drill 时出错

转载 作者:行者123 更新时间:2023-12-04 17:07:20 29 4
gpt4 key购买 nike

我正在尝试在 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,因为我没有事件连接。

    有什么建议?

    最佳答案

    似乎与文件夹的所有权有关,根据 this关联。
    来自链接的解决方案的详细信息引用如下

    Run these commands before the first time you are running 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

    关于apache-drill - 在 Windows 10 上以嵌入式模式启动 Apache Drill 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44154856/

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