我正在尝试在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,因为我没有活动连接。
有什么建议吗?
答案 0 :(得分:10)
根据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