Support Questions
Find answers, ask questions, and share your expertise

Nifi GetHDFS OnScheduled error

Nifi GetHDFS OnScheduled error

Explorer

Hi,

When I use GetHDFS, I got the following error and I cannot find a solution for it.

Any suggestion for this issue will be appreciated.

Thanks

Andy

GetHDFS[id=115c12d7-1761-1128-7f1a-c31b56a24aaf] GetHDFS[id=115c12d7-1761-1128-7f1a-c31b56a24aaf] failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.; processor will not be scheduled to run for 30 seconds: java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.

5 REPLIES 5

Re: Nifi GetHDFS OnScheduled error

Master Guru

@Andy Liang

Please share any complete stack trace that follows this error in the nifi-app.log. If possible, please also share some screenshots of your GetHDFS processor configuration.

Thank you,

Matt

Re: Nifi GetHDFS OnScheduled error

Explorer
@Matt Clarke

Hi Matt, Thank you very much for helping.

1) here is the NiFi Bulletin Board error

10:19:17 EDT ERROR 12d4119d-1128-1761-becf-ab1016926114

GetHDFS[id=12d4119d-1128-1761-becf-ab1016926114] GetHDFS[id=12d4119d-1128-1761-becf-ab1016926114] failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.; processor will not be scheduled to run for 30 seconds: java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.

2) Here is the error log

2017-05-15 10:20:17,535 ERROR [StandardProcessScheduler Thread-8] o.a.n.controller.StandardProcessorNode Failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task. java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task. at org.apache.nifi.controller.StandardProcessorNode.invokeTaskAsCancelableFuture(StandardProcessorNode.java:1449) ~[na:na] at org.apache.nifi.controller.StandardProcessorNode.access$100(StandardProcessorNode.java:100) ~[na:na] at org.apache.nifi.controller.StandardProcessorNode$1.run(StandardProcessorNode.java:1275) ~[na:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522) [na:1.8.0-internal] at java.util.concurrent.FutureTask.run(FutureTask.java:277) [na:1.8.0-internal] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:191) [na:1.8.0-internal] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [na:1.8.0-internal] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153) [na:1.8.0-internal] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [na:1.8.0-internal] at java.lang.Thread.run(Thread.java:785) [na:1.8.0-internal] Caused by: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException at java.util.concurrent.FutureTask.report(FutureTask.java:133) [na:1.8.0-internal] at java.util.concurrent.FutureTask.get(FutureTask.java:217) [na:1.8.0-internal] at org.apache.nifi.controller.StandardProcessorNode.invokeTaskAsCancelableFuture(StandardProcessorNode.java:1432) ~[na:na] ... 9 common frames omitted Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) ~[na:1.8.0-internal] at java.lang.reflect.Method.invoke(Method.java:507) ~[na:2.6 (01-06-2016)] at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:137) ~[na:na] at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:125) ~[na:na] at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:70) ~[na:na] at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:47) ~[na:na] at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1279) ~[na:na] at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1275) ~[na:na] ... 6 common frames omitted

Re: Nifi GetHDFS OnScheduled error

Master Guru
@Andy Liang

What version of NiFi are you running?

What version of Java are you running?

Re: Nifi GetHDFS OnScheduled error

Explorer

We are using nifi-1.1.1 and java version "1.8.0_71"

Re: Nifi GetHDFS OnScheduled error

@Andy Liang

Would you please post a snapshot of the configuration of the PutHDFS processor?