Member since
07-27-2023
55
Posts
19
Kudos Received
1
Solution
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 3023 | 09-14-2023 04:41 AM |
03-20-2024
01:46 AM
This is RouteOnAttribute processor. As you can see I have 2 properties defined. I want to use fileTransfer property to route to GetFile processor. And this is connection dialog box for one of the existing connections, and it lists 'fileTransfer' as a relationship.
... View more
03-20-2024
01:03 AM
I have to create a connection from RouteOnAttribute processor to GetFile processor based on value of an attribute which I have set in processor preceding RouteOnAttribute . But I am unable to do so on NiFi ui. Connection dialogbox jut doesn't appear. What am I missing?
... View more
Labels:
- Labels:
-
Apache NiFi
03-18-2024
10:53 PM
3 Kudos
Its a script processor to run a groovy script. If a functional error is detected, I need to send original input file over FTP.
... View more
03-18-2024
01:25 AM
1 Kudo
Error is in processor. Basically a functional error, nothing to do with nifi.
... View more
03-17-2024
08:04 PM
I have a usecase wherein in case of an error I need to make a copy of input file and send it to some FTP location so that it can be assessed. What is idiomatic way of achieving this?
... View more
Labels:
- Labels:
-
Apache NiFi
01-28-2024
11:36 PM
I have set following: nifi.flowfile.repository.implementation: org.apache.nifi.controller.repository.VolatileFlowFileRepository nifi.provenance.repository.implementation: org.apache.nifi.provenance.VolatileProvenanceRepository With this, I expect disk io operations to go down(checked with nmon). But its just opposite and disk writes have gone up multiple times. Why so?
... View more
Labels:
- Labels:
-
Apache NiFi
01-11-2024
11:32 PM
Is this the correct way of exposing a nifi property as env variable(in start.sh): prop_replace 'nifi.web.http.port' "${NIFI_WEB_HTTP_PORT:-8080}" I expect it to expose nifi.web.http.port as NIFI_WEB_HTTP_PORT, and also setting it to default value of 8080.
... View more
Labels:
- Labels:
-
Apache NiFi
10-08-2023
10:57 PM
I need some inputs on relationship definitions in a custom processor code: 1. Do I need to define all three(success, failure, original) relationships in processor class? 2. Do I need to handle all three relationships(using session.transfer(....))? 3. Why do I need to transfer original flowfile as it has been processed?
... View more
Labels:
- Labels:
-
Apache NiFi
10-06-2023
06:49 AM
My attempt so far: List<RecordField> fields = new ArrayList<>(); RecordField field1= new RecordField("field1", RecordFieldType.STRING.getDataType()); fields.add(field1); .... .... SimpleRecordSchema schema = new SimpleRecordSchema(fields); final Record mapRecord = new MapRecord(schema, new HashMap<>()); final List<FieldValue> selectedFields = new ArrayList<>(); //TODO how to create corresponding FieldValue instances from raw values for (final FieldValue selectedField : selectedFields) { mapRecord.setValue(selectedField.getField(), selectedField.getValue()); }
... View more
10-06-2023
05:47 AM
So my requirement is that I have to take some selected fields from input record, do some computations with them, create a new Record with new fields which are populated with these computed values, and write this new record into output flow file. I have to do it all in a custom processor I am writing.
... View more