Support Questions

Find answers, ask questions, and share your expertise

Combine GetFile and ExecuteProcess

avatar
Explorer

Hi Everyone, can we combine the nifi processors in this sense

GetFile-->ExecuteProcess or GetFile --> ExecuteStreamCommand

if yes how can we do it? 

3 REPLIES 3

avatar
Master Mentor

@Justee 

Not really sure what you mean by "combine".  Can you elaborate on your use case?

You can drag a connection from GetFile to either ExecuteProcess or ExecuteStreamCommand, but is suspect that is not what you are asking here.

Thank you,

Matt

avatar
Explorer

 

Hi @MattWho  by combine i meant drag a connection from GetFile to ExecuteProcess or ExecuteStreamCommand i have a flowfile which is composed of GetFile processor which collects the data and passes it to MergeContent processor to get a single file of several lines. i want to filter its lines and then classify them . and i was thinking of using ExecuteProcess or ExecuteStreamCommand. you can also give me a suggestion.

avatar
Master Mentor

@Justee 

The ExecuteProcess [1] processor by design does not allow an inbound connection. It is designed to create an output FlowFile and does not except a FlowFile as input.

You can connect getFile to the ExecuteStreamCommand [2] processor

[1] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apach...

[2] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apach...