简体   繁体   English

Azure数据湖分析空输出文件

[英]Azure data lake analytics empty output file

I need help, can't see the issue of this problem: I am provisioning an Azure Data Lake Store with a Stream Analytics jobs. 我需要帮助,看不到此问题的问题:我正在为Azure Data Lake Store配备Stream Analytics作业。 File are tab separated and the job is running without errors. 文件用制表符分隔,作业正在正常运行。

I deployed an Azure Data Lake Analytics service to aggregate data like this: 我部署了Azure Data Lake Analytics服务来汇总数据,如下所示:

@input = 
EXTRACT [applicationname] string,
        [clientip] string,
        [continent] string,
        [country] string,
        [province] string,
        [city] string,
        [latitude] string,
        [longitude] string
FROM "adl://mydatalakesotre.azuredatalakestore.net/instrumentationoutput/mystore/2017-10-22/{*}"
USING Extractors.Text(delimiter: '\t', skipFirstNRows: 1, silent: true);

OUTPUT @input 
TO "output/PowerBI_output.tsv"
USING Outputters.Tsv(outputHeader: true);

I can't find the way to make it working... I Have other 5 MB of input data, but the output got only the headers, as specify in the query... What am I missing. 我找不到使它正常工作的方法...我还有其他5 MB的输入数据,但输出仅包含标题(如查询中指定的那样)...我缺少什么。

Thanks for the help. 谢谢您的帮助。

As Bob mentions in the comment, you are getting an empty result because you most likely have a misalignment in your schema definition and the actual files that you extract from. 正如Bob在评论中提到的那样,您得到的结果是空的,因为您很可能在架构定义和提取的实际文件中未对齐。

I suggest that you open the file in the ADL Tools of Visual Studio and use the CREATE EXTRACT statement wizard to create you the EXTRACT statement. 建议您在Visual Studio的ADL工具中打开文件,然后使用CREATE EXTRACT语句向导来创建EXTRACT语句。 If you still get error messages (after removing silent:true ), please update your question with the detected error message and we will give you an updated answer. 如果您仍然收到错误消息(在删除了silent:true ),请使用检测到的错误消息更新您的问题,我们将为您提供更新的答案。

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

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