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.

Executescript output filesize

Highlighted

Executescript output filesize

Hello Forum,

Is it possible through Executescript groovy coding, to route the flowFile to success only if the output file size is > 0

I have done the groovy coding but yet not able to put this condition, something like below

if (filename.size>0){
    session.transfer(flowFile, REL_SUCCESS)
    }

thnks

2 REPLIES 2

Re: Executescript output filesize

the reason that I dont want to send 0 file size to next processors.

Highlighted

Re: Executescript output filesize

any help.. ?

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