3

在从 orangeoctopus 获得有关此问题的帮助后,我现在需要禁止显示消息“输出位置验证失败”“输出目录......已经存在”。我知道目录存在,我想要那样。我很确定这将是覆盖我的存储 UDF 中的某些内容的问题,但我无法弄清楚是什么。对 Java 完全陌生,所以请多多包涵。提前致谢。

4

2 回答 2

3

as far as i know, you cannot reuse a direct output directory. Hadoop prevents it. if i understand correctly, you're dealing with daily logs, therefore, i suggest you set a parent output directory say called output, and set your output directory in the script to be output/daily_date.

于 2012-05-04T14:08:48.597 回答
0

在存储操作之前删除您的输出目录:

rmf $outpath;
于 2014-01-29T00:54:51.830 回答