Member since
10-23-2020
15
Posts
1
Kudos Received
0
Solutions
11-23-2021
12:14 PM
Hello, I'm having the same problem with the double quotes being removed when you pass a JSON into the ExecuteStreamCommand. Have you been able to find a solution?
... View more
11-03-2021
01:35 PM
Hello, how can I route flowfiles based on attribute name, not its value? I know what the attribute names will be but not their values. For example, I want to route all flowfiles with the attribute AmazonUserAddDetection to one flow, whereas those with the attribute GCPUser to a different flow.
... View more
Labels:
- Labels:
-
Apache NiFi
11-12-2020
06:55 AM
Thanks @stevenmatison Is there a plan to add a feature to InvokeHTTP to access hosts with a self-signed cert? It is very common for organizations to deploy internal hosts with localhost.localdomain certs, that are only accessible by the IP.
... View more
11-05-2020
11:09 AM
How can I use InvokeHTTP without SSL verification? I followed this article on how to import the public certificate but that cert is not CA-signed, and InvokeHTTP doesn't work. Below is the error I get. https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-provide-options-to-InvokeHTTP-nifi/m-p/236239 In InvokeHTTP, I'm using the StandardSSLContextService with the following configs: Thanks. Valentin
... View more
Labels:
- Labels:
-
Apache NiFi
11-04-2020
11:33 AM
How can I transform a string to an integer in NiFi? I tried JoltTransform, but the string is transformed to a negative (??) integer. In the example, below, the timestamp_start original string value 1677720088000 is transformed to -1612124736. What am I missing in my Jolt specification? Any help is appreciated. Is there an alternative to the JoltTransform - another processor? Looks like this is a known issue: https://github.com/bazaarvoice/jolt/issues/749 Original JSON Transformed JSON Jolt Specification [
{
"operation": "modify-overwrite-beta",
"spec": {
"timestamp_start": "=toInteger"
}
},
{
"operation": "default",
"spec": {}
}
]
... View more
Labels:
- Labels:
-
Apache NiFi
11-02-2020
05:32 AM
Thanks @suraj143 I ended up using an UpdateRecord, but your approach with a JoltTransformJSON also works.
... View more
10-29-2020
01:51 PM
Thanks @stevenmatison Do you by chance know the answer to this question https://community.cloudera.com/t5/Support-Questions/Extract-string-nested-in-JSON-value/m-p/305099 It's probably something very easy, but nothing that I tried works. Valentin
... View more
10-29-2020
08:31 AM
UPDATE: If you ever need to modify a record use this solution: https://community.cloudera.com/t5/Support-Questions/NiFi-UpdateRecord-processor-is-not-updating-JSON-path/m-p/186256 ORIGINAL question: How can I extract a string nested in the value of a JSON? For the status key below, I only want the value Active, instead of MapRecord[{current_status=Active}]. Original JSON {
"indicator": "147.183.200.154",
"timestamp": 1577742090000,
"status": "MapRecord[{current_status=Active}]"
} Desired final JSON {
"indicator": "147.183.200.154",
"timestamp": 1577742090000,
"status": "Active"
}
... View more
Labels:
- Labels:
-
Apache NiFi
10-29-2020
07:50 AM
1 Kudo
Thanks for the example @stevenmatison I ended up using the LookupRecord with the HBase_1_1_2_RecordLookupService which seem to work. Would you recommend one method over another for looking up records in HBase? Valentin
... View more