apache-nifi-registry

org.apache.nifi.processor.exception.FlowFileHandlingException: is not known in this session) in <script> at line number 32

吃可爱长大的小学妹 提交于 2020-03-05 04:25:07
问题 I have written a python script to just compare to strings and putting attribute in the flowfile. But while handling exceptions, I am getting below error always and my flowfile is stuck in the queue with ExecuteScript Processor with below exception: 2020-02-07 18:15:26,049 ERROR [Timer-Driven Process Thread-7] o.a.nifi.processors.script.ExecuteScript ExecuteScript[id=0fdb3d0f-b361-3b31-faf8-fce2dc707591] ExecuteScript[id=0fdb3d0f-b361-3b31-faf8-fce2dc707591] failed to process due to org.apache

How to reorder CSV columns in Apache NiFi

限于喜欢 提交于 2019-12-11 17:23:48
问题 Reorder column in a csv in apache nifi. Input - I have multiple files which have same columns but are in different order. Output - Scrape some columns and store in same order. 回答1: In my case, because I'm sure those columns will be included in all CSV files, I just need to reorder them. So I use QueryRecord to reorder my csv files. For example, here're my csv files: \\file1 name, age, location, gender Jack, 40, TW, M Lisa, 30, CA, F \\file2 name, location, gender, age Mary, JP, F, 25 Kate, DE