作者:Tsu_Hsien_945 | 来源:互联网 | 2023-02-03 09:31
我试图在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//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,因为我没有活动连接.
有什么建议?
1> Timothy Anyo..:
根据此链接,似乎与文件夹的所有权有关.来自链接的解决方案的细节引用如下
在第一次运行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