Read from a configuration file in Nifi -


i trying read configuration file(conf.txt) in nifi. based on path provided in file want configure paths(eg:hdfs file path , input directory path) in nifi processors.

is possible existing processors or should go custom processor.

can please me on this.

you can configure custom properties part of apache nifi's variable registry feature, makes properties external file available nifi expression language expressions. using expression language, can configure many processors externally-defined variables.

conf/nifi.properties

# external properties files variable registry # supports comma delimited list of file locations nifi.variable.registry.properties=./conf/custom.properties 

conf/custom.properties

my.prop1=value1 my.prop2=value2 ... 

in expressions

${my.prop1} 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -