Apache nifi 从Nifi中的配置文件读取
我正在尝试读取Nifi中的配置文件(conf.txt)。基于此文件中提供的路径,我希望在nifi处理器中配置路径(例如:hdfs文件路径、输入目录路径) 是可以使用现有的处理器,还是应该使用自定义处理器 任何人都可以在这方面帮助我。您可以配置为Apache NiFi的变量注册表功能的一部分,该功能使NiFi表达式可以使用外部文件中的属性。使用表达式语言,您可以使用外部定义的变量配置多个处理器 conf/nifi.propertiesApache nifi 从Nifi中的配置文件读取,apache-nifi,Apache Nifi,我正在尝试读取Nifi中的配置文件(conf.txt)。基于此文件中提供的路径,我希望在nifi处理器中配置路径(例如:hdfs文件路径、输入目录路径) 是可以使用现有的处理器,还是应该使用自定义处理器 任何人都可以在这方面帮助我。您可以配置为Apache NiFi的变量注册表功能的一部分,该功能使NiFi表达式可以使用外部文件中的属性。使用表达式语言,您可以使用外部定义的变量配置多个处理器 conf/nifi.properties # external properties files for
# external properties files for variable registry
# supports a comma delimited list of file locations
nifi.variable.registry.properties=./conf/custom.properties
my.prop1=value1
my.prop2=value2
...
${my.prop1}
conf/custom.properties
# external properties files for variable registry
# supports a comma delimited list of file locations
nifi.variable.registry.properties=./conf/custom.properties
my.prop1=value1
my.prop2=value2
...
${my.prop1}
在表达式中
# external properties files for variable registry
# supports a comma delimited list of file locations
nifi.variable.registry.properties=./conf/custom.properties
my.prop1=value1
my.prop2=value2
...
${my.prop1}
您可以将配置作为Apache NiFi的变量注册表功能的一部分,该功能使NiFi表达式可以使用外部文件中的属性。使用表达式语言,您可以使用外部定义的变量配置多个处理器
conf/nifi.properties
# external properties files for variable registry
# supports a comma delimited list of file locations
nifi.variable.registry.properties=./conf/custom.properties
my.prop1=value1
my.prop2=value2
...
${my.prop1}
conf/custom.properties
# external properties files for variable registry
# supports a comma delimited list of file locations
nifi.variable.registry.properties=./conf/custom.properties
my.prop1=value1
my.prop2=value2
...
${my.prop1}
在表达式中
# external properties files for variable registry
# supports a comma delimited list of file locations
nifi.variable.registry.properties=./conf/custom.properties
my.prop1=value1
my.prop2=value2
...
${my.prop1}