Ric*_*d W 4 apache-nifi
我是NiFi的新手。我被要求从FTP服务器获取文件。如果文件内容与上一个文件相同,则什么都不做,否则将新文件发送到另一个FTP服务器。有任何想法吗 ?
谢谢,
理查德
Bry*_*nde 6
HashContent处理器和DetectDuplicate处理器可用于此目的。
HashContent将创建流文件内容的哈希,并将其放入名为hash.value的属性中。
DetectDuplicate将检查散列值的高速缓存,以查看是否存在相同的散列,然后将其路由到适当的关系(重复或非重复)。
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.8.0/org.apache.nifi.processors.standard.DetectDuplicate/index.html
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.8.0/org.apache.nifi.processors.standard.HashContent/index.html
归档时间:
6 年,9 月 前
查看次数:
528 次
最近记录: