此刻我只能在dfs.tmp.
工作区工作,这很烦人。于是,我就change the default workspace到一个新的(现有的)文件夹(钻用户自备):Apache Drill无法设置默认工作区
"workspaces": {
"default": {
"location": "/var/drill",
"writable": true,
"defaultInputFormat": null
},
"root": {
"location": "/",
"writable": false,
"defaultInputFormat": null
},
...
但它不工作:
CREATE TABLE `test` as SELECT 'Test' FROM (VALUES(1))
返回下面的错误,这表明修改设置会被忽略。
org.apache.drill.common.exceptions.UserRemoteException: PARSE ERROR: Root schema is immutable. Creating or dropping tables/views is not allowed in root schema.Select a schema using 'USE schema' command.
我也前缀(没有成功)试了一下
CREATE TABLE dfs.default.`test` as SELECT 'Test' FROM (VALUES(1))
PARSE ERROR: Encountered ". default" at line 1, column 17.
而且还试图重新启动钻机,使root写入。
我知道!但在手册中声明,我必须覆盖“默认”工作区以更改我的默认工作区!只需看看:https://drill.apache.org/docs/workspaces/ – NaN