在设置partitionSize = 0以便在Nifi中获取GenerateTableFetch Processor的给定表中的所有行时,我收到以下错误:
错误[定时器驱动的进程线程-4] o.a.n.p.standard.GenerateTableFetch GenerateTableFetch [ID = d0932834-015d-1000-8224-c230630b6fa6] GenerateTableFetch [id = d0932834-015d-1000-8224-c230630b6fa6]未能 由于java.lang.NullPointerException导致的进程会话:{} java.lang.NullPointerException:null at org.apache.nifi.processors.standard.GenerateTableFetch.onTrigger(GenerateTableFetch.java:300) 在org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1120) 在org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147) 在org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) 在org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent $ 1.run(TimerDrivenSchedulingAgent.java:132) at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617) 在java.lang.Thread.run(Thread.java:748)
当我给partitionSize> 0时,它可以工作。如何解决此错误?
答案 0 :(得分:0)
不幸的是,对于分区大小为0的情况,这是处理器代码中的错误。
我为它创建了这个JIRA: https://issues.apache.org/jira/browse/NIFI-4286