apache-nifi

How to update variable.registry.properties in Nifi on the fly?

大憨熊 提交于 2020-07-20 17:05:09
问题 The variable registry properties is a functionality that was added to Nifi in order to promote software developement life cycle. Meaning that you can develop your flows in a separate developement environement and take advantage of the custom properties files specified in the nifi.variable.registry.properties property alongside with expression language to use variables in the processors configurations. Then you can export your flows as templates together with your custom properties files and

How to update variable.registry.properties in Nifi on the fly?

拥有回忆 提交于 2020-07-20 17:01:41
问题 The variable registry properties is a functionality that was added to Nifi in order to promote software developement life cycle. Meaning that you can develop your flows in a separate developement environement and take advantage of the custom properties files specified in the nifi.variable.registry.properties property alongside with expression language to use variables in the processors configurations. Then you can export your flows as templates together with your custom properties files and

How to update variable.registry.properties in Nifi on the fly?

喜夏-厌秋 提交于 2020-07-20 17:01:02
问题 The variable registry properties is a functionality that was added to Nifi in order to promote software developement life cycle. Meaning that you can develop your flows in a separate developement environement and take advantage of the custom properties files specified in the nifi.variable.registry.properties property alongside with expression language to use variables in the processors configurations. Then you can export your flows as templates together with your custom properties files and

In nifi how to log ip address of the server

夙愿已清 提交于 2020-07-10 08:14:23
问题 In nifi app log how to log ip address which uses logback framework for logging. <appender name="APP_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${org.apache.nifi.bootstrap.config.log.dir}/nifi-app.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <!-- For daily rollover, use 'app_%d.log'. For hourly rollover, use 'app_%d{yyyy-MM-dd_HH}.log'. To GZIP rolled files, replace '.log' with '.log.gz'. To ZIP rolled files, replace '

In nifi how to log ip address of the server

别说谁变了你拦得住时间么 提交于 2020-07-10 08:13:37
问题 In nifi app log how to log ip address which uses logback framework for logging. <appender name="APP_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${org.apache.nifi.bootstrap.config.log.dir}/nifi-app.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <!-- For daily rollover, use 'app_%d.log'. For hourly rollover, use 'app_%d{yyyy-MM-dd_HH}.log'. To GZIP rolled files, replace '.log' with '.log.gz'. To ZIP rolled files, replace '

NullPointerException when connecting Confluent Kafka and InfluxDB

前提是你 提交于 2020-06-29 04:49:16
问题 I'm trying to use the Confluent InfluxDB Sink Connector to get data from a kafka topic into my InfluxDB. Firstly, I transmit data to kafka topic from a log file by using nifi, and it works well. The kafka topic get the data, like below: { "topic": "testDB5", "key": null, "value": { "timestamp": "2019-03-20 01:24:29,461", "measurement": "INFO", "thread": "NiFi Web Server-795", "class": "org.apache.nifi.web.filter.RequestLogger", "message": "Attempting request for (anonymous) }, "partition": 0,

NIFI: get value from json

久未见 提交于 2020-06-28 06:28:11
问题 i have a queryCassandra which generate json like this one: {"results":[{"term":"term1"},{"term":"term2"}..]} Now, i want to get from this all the term values separated by some separator in string format; ex : term1,term2,term3 So i can pass this list as a string parameter for a java main program which i've alreat set. (i only need the transofrmation, not the java program execution) Thank you ! 回答1: You can easily get those values by using following ways. GetFile-->EvaluateJsonPath-->PutFile

How to use value of a counter in NiFi

我的梦境 提交于 2020-06-27 16:36:42
问题 In NiFi 1.3.0, I have created a flow to split a JSON file and update the counter with name filenamecounter so that I can save each split into different file names. I see that the counter value gets updated when I view the NiFi counters pane. But how can I access this value? I tried setting an attribute with the counter name, and counters property. Like ${filenamecounter} and ${filenamecounter.counter} but unsuccessful. 回答1: Currently counters are mostly a monitoring feature, you can't really

How can I get the Blob file using NiFi?

安稳与你 提交于 2020-06-26 14:42:13
问题 I have a table in Oracle DB with one column holding BLOB data. Does NiFi support Blob file from Oracle to PostgreSQL? if yes, what are the processors do I need to use for convert and store the data? I want to see the original content of the blob data in PostgreSQL. Thank you. 回答1: You can use ExecuteSQL to get the BLOB data out of Oracle, but currently you can't use ExecuteSQLRecord (due to this bug) or use PutDatabaseRecord to put BLOB data into a bytea field in PostgreSQL (due to this bug).