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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -