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.

is there any way we can keep the properties of processor in xml and pass same while running in nifi ?

Highlighted

is there any way we can keep the properties of processor in xml and pass same while running in nifi ?

Explorer

Hi Team,

I just started working on NiFi. Need someone's help on my new requirement.

My Requirement: I want to read files from one folder and place the files in another server.

for reading the file from folder used getFile processor and connected to putSFTP processor to move the file destination folder.

It will be hard to set the properties as static in putSFTP processor. If any property change, we need to edit the processor. Instead of changing the processor directly, is there any way we can keep the details in XML file and pass the same values while running.

properties of processor :

Hostname:

Port:
username:

password:

Remote path:

---------------

How to read xml file and pass xml attribute values to Processor.

Thanks, in advance.

Thanks,

Rangareddy Y

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