Member since
10-17-2018
8
Posts
1
Kudos Received
5
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
284 | 12-05-2018 10:40 AM | |
283 | 12-05-2018 10:22 AM | |
1576 | 10-19-2018 11:41 AM | |
1354 | 10-19-2018 06:00 AM | |
220 | 10-17-2018 01:50 PM |
12-05-2018
10:40 AM
1 Kudo
@Mahendra Hegde You can use the function anyDelineatedValue. ${anyDelineatedValue("${your_attribute}", ","):contains("US")}
... View more
12-05-2018
10:25 AM
@Rohit Gupta You can use NiFi REST API to get and update the properties of a processor. ex - GET/processors/{id} https://nifi.apache.org/docs/nifi-docs/rest-api/index.html You can find help here.
... View more
12-05-2018
10:22 AM
@Pallavkumar Registry would be a better option if your query keeps changing because changes in property files need NiFi to be restarted in order to reflect.
... View more
10-19-2018
11:41 AM
@David Sargrad, JOLT cannot do that for you. You need to first get the value of the issued field in a flowfile attribute(using EvaluateJsonPath), then you can use expression language functions on that attribute to extract the year, month, date and so on from that attribute. You can use expression language in JOLT. [
{
"operation": "default",
"spec": {
"issued_year": "${date_attribute:toNumber():format('YYYY')}",
"issued_month": "${date_attribute:toNumber():format('MM')}"
}
}
] Assuming that date_attribute is the attribute containing the evaluated date.
... View more
10-19-2018
11:26 AM
@David Sargard, "@" copies whatever is present at the current level, and copies it to "&2.&" Here &2 means go up two levels and grab the key, and & means go up one level and grab the key. i.e., &2 will return textNOTAM and & will return NOTAM, so &2.& will place whatever value you get at the following jsonPath: textNOTAM.NOTAM
... View more
10-19-2018
06:00 AM
@@David Sargrad, you can use this specification, [
{
"operation": "shift",
"spec": {
"textNOTAM": {
"NOTAM": {
"issued": "issued",
"effectiveStart": "effectiveStart",
"effectiveEnd": "effectiveEnd",
"@": "&2.&"
}
}
}
}
]
... View more
10-17-2018
01:50 PM
@Suresh Denukuri You can use the query property in GetMongo Processor. If you have the query in the body of an incoming flowfile, leave it blank, else you can specify the query here.
... View more
10-17-2018
01:43 PM
@John T, You cannot have two different ListenHttp processors listening on the same port. Also, ListenHttp allows only one path. You can use HandleHttpRequest followed by a RouteOnAttribute and use the http.request.url attribute to route to your path.
... View more