Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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

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

Explorer

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

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.