Member since
02-22-2016
60
Posts
71
Kudos Received
27
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
4436 | 07-14-2017 07:41 PM | |
1328 | 07-07-2017 05:04 PM | |
5048 | 07-07-2017 03:59 PM | |
915 | 07-06-2017 02:59 PM | |
2899 | 07-06-2017 02:55 PM |
07-06-2017
02:55 PM
2 Kudos
@Pavan Challa I've created a template [1] that sketches out how to satisfy your use case. In it I used an ExecuteScript [2] to evaluate the attribute expression from the to.path in the XML file. I do think it'd be better/easier/more perspicuous to just set the directory in PutFile as `/var/tmp/${country}/${datasource}/csv` but figured it was worth showing you how you could do this anyway. The (default) expression engine for the lookups [3] is rather simple so you can't do conditional lookups like you're suggesting, but you can, however, do what you want using the index of the properties. There is a way to enable XPath in the underlying libraries but that'll require some internal code changes and won't help you immediately. 1. https://gist.github.com/jfrazee/26deffba3a7d50e991495e223a020b93#file-lookupattribute_xml_putfile_example-xmllookupattribute_xml_putfile_example-xml 2. https://gist.github.com/jfrazee/26deffba3a7d50e991495e223a020b93#file-evalexp-groovy 3. http://commons.apache.org/proper/commons-configuration/apidocs/org/apache/commons/configuration2/tree/DefaultExpressionEngine.html
... View more
03-22-2017
03:46 PM
Thank you, @jfrazee. Per your suggestion (#2), I used HAproxy and it's working perfectly.
... View more
11-09-2016
06:26 AM
@Artem Ervits it's dummy data.
... View more
09-09-2016
01:06 PM
+ @jfrazee @Matt Burgess
... View more
04-20-2017
08:42 PM
Does any one know why or under what circumstances NIFI passes a null flowfile to a custom NIFI processor ? We are seeing cases where the session that is passed in as an input to the onTrigger method of the custom (java) processor contains a session with a null flow file.
... View more
05-09-2016
03:41 AM
Thanks very much for the detailed answer, ideas, screenshots, and sample code, that's very helpful.
... View more
03-28-2016
03:12 PM
1 Kudo
The memory pool names are specific to whatever garbage collector you're using with the JVM. If you're using ParallelGC the choice of names are going to be: PS Eden Space PS Survivor Space PS Old Gen PS Perm Gen For G1GC: G1 Eden G1 Survivor G1 Old Gen G1 Perm Gen And there are others for other garbage collectors. If you're unsure you can connect to a process using jconsole and look at java.lang -> MemoryPool:
... View more