Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache nifi 从Nifi中的配置文件读取_Apache Nifi - Fatal编程技术网

Apache nifi 从Nifi中的配置文件读取

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

我正在尝试读取Nifi中的配置文件(conf.txt)。基于此文件中提供的路径,我希望在nifi处理器中配置路径(例如:hdfs文件路径、输入目录路径)

是可以使用现有的处理器,还是应该使用自定义处理器

任何人都可以在这方面帮助我。

您可以配置为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}
您可以将配置作为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}