Created 02-17-2017 01:36 PM
Hi all,
I'm somes troubles with now() format.
I've used RouteOnAttribute to delete files older than 15 days.
It seems that my expression is failed :
${now():toNumber():minus(${hdfs.lastModified}):gt(1296000000)}
Somebody can help ?
thanks.
Created 02-17-2017 01:46 PM
@mayki wogno
Which NiFi processor are you using this NiFi Expression Language statement in?
What is the value of of the hdfs.lastModified attribute on your FlowFile?
Thanks,
Matt
Created 02-17-2017 02:43 PM
Sorry @Matt, it seems ok, statement return TRUE for files older than 15 days.