多个目录上的 Apache Drill 查询不起作用

Apache Drill query on multiple directories not working

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

如果我使用年份目录查询,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

我发现了问题。问题是当我使用 Finder 在 mac 中创建子目录时,它创建了 .DS_Store 隐藏文件,这扰乱了 Apache Drill 查询。