Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NIFI : now()

Highlighted

NIFI : now()

Explorer

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.

2 REPLIES 2
Highlighted

Re: NIFI : now()

Master Guru

@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

Re: NIFI : now()

Explorer

Sorry @Matt, it seems ok, statement return TRUE for files older than 15 days.

Don't have an account?
Coming from Hortonworks? Activate your account here