Member since
11-16-2015
892
Posts
650
Kudos Received
245
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
5649 | 02-22-2024 12:38 PM | |
1386 | 02-02-2023 07:07 AM | |
3081 | 12-07-2021 09:19 AM | |
4200 | 03-20-2020 12:34 PM | |
14149 | 01-27-2020 07:57 AM |
02-02-2022
10:59 PM
@rafy, as this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.
... View more
12-10-2021
12:31 AM
@krishna123 as this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.
... View more
12-07-2021
09:34 AM
Ah I'm so careless, thanks for pointing that out!
... View more
12-06-2021
08:50 AM
@mburgess .. Hope you are doing good. I am facing issue while creating a groovy script for Scripted Reader Controller service in Convert Record processor. I want read the Flat width file input but script validation is getting failed again and again. It is giving 'groovy.lang.MissingPropertyException: No such property: session for class: Script' My code is below (also not sure my logic is correct for reading the Fixed Width File as input) Please let me know what's the issue here. import org.apache.commons.io.IOUtils import java.nio.charset.StandardCharsets import java.nio.charset.UnsupportedCharsetException; import java.io.IOException; import org.apache.nifi.controller.ControllerService flowFile = session.get() if(!flowFile) return try { def text = '' // Cast a closure with an inputStream parameter to InputStreamCallback session.read(flowFile, {inputStream -> def readIN = IOUtils.toString(inputStream, StandardCharsets.UTF_8) names = [] text = readIN.eachLine { names << [ data: it[0..7].trim(), name: it[8..33].trim(), isr: it[34..43].trim() ]} readIN.close() } as InputStreamCallback) session.transfer(flowFile, REL_SUCESS) } catch(e) { log.error("Error while processing the flowfile") session.transfer(flowFile, REL_FAILURE) }
... View more
11-28-2021
08:51 PM
Hello Team, I am facing some problem while running JAR file from NIFI. please find below screenshot for same could anyone help for same?
... View more
09-29-2021
09:06 AM
@mburgess I used your 1st suggestion and it worked like a charm with just one exception. The header row was index 1. I'm not sure if was just me, my data, or some property/attribute I set wrong. Just thought you should know. So, after modifying the user-defined attribute value to ${fragment.index:gt(1)} it worked. And, in case you ask, the header row is the first row in the CSV file which doesn't make sense unless the processor logic changed to 1-based indexing instead of 0-based indexing. Also, thanks for all of your blog posts. I use your suggestions a lot.
... View more
08-30-2021
07:52 PM
Hi @Sbofa Yes you are right. Based on kind it will decide which kind of spark shell needs to start.
... View more
07-22-2021
03:08 PM
cool tool. I updated to work with 1.12.1: https://gist.github.com/tpanagos/fb8ca4afb16b00862429ffc87dc65348
... View more
05-28-2021
03:07 PM
Hi @jerry_pylarinos and @mburgess I am seeing weird behavior in the same scenario but the only difference is my spec has expression language inside Jspec and it never resolved after pulling from the cache and passing as an attribute to jolttransform. Is that a bug? like if you jspec.json has [
{
"operation": "modify-overwrite-beta",
"spec": {
"id": "${UUID()}"
}
}
] and your generate flow file has {
"id" : "anyname"
} You result looks like this {
"id":"${UUID()}"
} How to evaluate expression langauge here?
... View more
05-11-2021
05:09 AM
1 Kudo
Thanks @VidyaSargur - I just started a new thread, per your suggestion.
... View more