Member since
09-29-2015
871
Posts
723
Kudos Received
255
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 4250 | 12-03-2018 02:26 PM | |
| 3193 | 10-16-2018 01:37 PM | |
| 4303 | 10-03-2018 06:34 PM | |
| 3160 | 09-05-2018 07:44 PM | |
| 2411 | 09-05-2018 07:31 PM |
11-27-2017
09:07 PM
Correct... it does capture the sender in a flow file attribute in case that is useful for you in some way.
... View more
11-27-2017
08:54 PM
1 Kudo
This is expected behavior... ListenUDP is receiving packets and taking the content of those packets and writing them to flow files, its not capturing raw packets. When it gets to PutUDP it has no concept of the original packets, only the data that was in each one, so now it is sending new packets to your tool.
... View more
11-16-2017
02:58 PM
1 Kudo
You could probably implement a custom processor like "JsonToAttributes" very easily, iterate through a JSON document and add each field/value as an attribute to the flow file, or do it with a Groovy script in ExecuteScript. The reason it doesn't exist is that in the general case you should be careful about adding a significant amount of attributes because those are held in memory, so if we provided this processor people would start using it to adding 100s of attributes to their flow files which could lead to poor performance and memory issues.
... View more
11-14-2017
07:16 PM
1 Kudo
You could put a RouteOnAttribute after ListFile which would let your compare the filename to an expression language statement, and then route the ones that match to FetchFile and the unmatched ones to a dead-end processor, or auto-terminate.
... View more
11-09-2017
05:13 PM
NiFi processors should be able to handle CLOB, can you please provide an error that you received and which processor it came from?
... View more
11-08-2017
02:14 PM
1 Kudo
Hello, The end-user in NiFi is only the person configuring the processor. Once the person starts the processor and leaves the application, there is no longer a user, it is now being executed by the framework, and there could be several users who could come in stop it and make changes and start it again. So processors are not going to execute based on the end-user that configured them. You are correct though that there are improvements that need to be made around SASL_PLAINTEXT. Currently the processors set Kafka's sasl.mechanism property to GSSAPI behind the scenes, and you need to add a user-defined property of sasl.mechanism = PLAIN in order to change this, so that should be exposed as a formal property. Also, currently the 0.10 processors support creating a dynamic JAAS file based on properties in the processors, but I believe it only works for Kerberos and we should be able to do the same for PLAIN.
... View more
11-07-2017
09:23 PM
You're welcome... one more option is to use ExecuteScript to run a simple processor that reads a flow file line by line and only writes out the lines with length > 0.
... View more
11-07-2017
08:53 PM
Can you change whatever is sending the data to ListenUDP to not send a new-line at the end of the message? If not, how about ReplaceText to replace \n\n with \n?
... View more
11-07-2017
08:29 PM
I don't think this could happen with ListenTCP, but with ListenUDP it could happen if the data being received already has a new-line at the end. For example, if you received these two messages "This is message 1\n" and "This is message 2\n" and then you used the batching delimiter of "\n" then you'd get "This is message 1\n\nThis is message 2\n".
... View more
11-06-2017
05:35 PM
No problem, glad it was helpful 🙂 If you are reaching the login screen, then it means your browser is not forwarding your credentials to NiFi. You could try setting the negotiate properties to just "myhost.de" instead of the full url with port. Another thing to look at might be the domain being used by your KDC... In this example I was using nifi.apache.org as the domain, so I had to add a mapping in /etc/hosts to map nifi.apache.org to localhost so I could use nifi.apache.org in my browser to access my local NiFi. If you are accessing myhost.de to get to your NiFi instance, but that isn't the domain in your KDC, then it won't line up and probably won't forward your credentials.
... View more