简体   繁体   English

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

[英]Apache Drill query on multiple directories not working

My data files are partitioned in subdirectories by year. 我的数据文件按年份划分在子目录中。

If i query using year directory, sql works fine. 如果我使用年份目录查询,则sql可以正常工作。

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

But if i query the parent directory getting following error. 但是,如果我查询父目录得到以下错误。

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

Error 错误

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 

Drill documentation links: 钻取文档链接:

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

I found the issue. 我发现了问题。 Issue was when i created subdirectories in mac using finder, it created .DS_Store hidden file, which is messing up the Apache Drill Query. 问题是当我使用finder在Mac中创建子目录时,它创建了.DS_Store隐藏文件,这弄乱了Apache Drill查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM