多个目录上的Apache Drill查询无法正常工作

时间:2015-01-14 19:03:08

标签: bigdata

我的数据文件按年份在子目录中进行分区。

如果我使用年份目录查询,sql工作正常。

select  count(*) from dfs.`/drill/perf/logs/2010`;

但是如果我查询父目录会出现以下错误。

select  count(*) from dfs.`/drill/perf/logs`;

错误

Jan 14, 2015 1:43:52 PM org.eigenbase.sql.validate.SqlValidatorException <init>
SEVERE: org.eigenbase.sql.validate.SqlValidatorException: Table 'dfs./drill/perf/logs' not found
Jan 14, 2015 1:43:52 PM org.eigenbase.util.EigenbaseException <init>
SEVERE: org.eigenbase.util.EigenbaseContextException: From line 1, column 23 to line 1, column 25:     Table 'dfs./drill/perf/logs' not found
Query failed: Query failed: Failure validating SQL. org.eigenbase.util.EigenbaseContextException:   From line 1, column 23 to line 1, column 25: Table 'dfs./drill/perf/logs' not found 

钻取文档链接:

https://cwiki.apache.org/confluence/display/DRILL/Querying+Directories https://cwiki.apache.org/confluence/display/DRILL/Partition+Pruning

1 个答案:

答案 0 :(得分:1)

我发现了这个问题。问题是当我使用finder在mac中创建子目录时,它创建了.DS_Store隐藏文件,这会弄乱Apache Drill Query。