Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.7.0, 1.9.2
-
None
-
QA
Description
Hi,
Few days ago we updated package java-1.8.0-openjdk.x86_64 from version 1.8.0.242.b08-1.el7 to 1.8.0.252.b09-2.el7_8 with yum on our Linux machine.
Since that update we start having issue with PutElasticsearchHttp processor in our Nifi flow.
We are using Nifi 1.7.0 and plan to upgrade soon our Nifi version. But I not sure the Nifi upgrade will fix the issue we are facing at the moment.
Below an extract of error we got:
// code placeholder 2020-06-03 15:27:50,130 ERROR [Monitor Processor Lifecycle Thread-2] o.a.n.p.e.PutElasticsearchHttp PutElasticsearchHttp[id=d228ab45-ee2e-3675-ffa7-28241be45386] Failed to properly initialize Processor. If still scheduled to run, NiFi will attempt to initialize and run the Processor again after the 'Administrative Yield Duration' has elapsed. Failure is due to java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetException2020-06-03 15:27:50,130 ERROR [Monitor Processor Lifecycle Thread-2] o.a.n.p.e.PutElasticsearchHttp PutElasticsearchHttp[id=d228ab45-ee2e-3675-ffa7-28241be45386] Failed to properly initialize Processor. If still scheduled to run, NiFi will attempt to initialize and run the Processor again after the 'Administrative Yield Duration' has elapsed. Failure is due to java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetExceptionjava.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142) at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:130) at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:75) at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:52) at org.apache.nifi.controller.StandardProcessorNode.lambda$initiateStart$4(StandardProcessorNode.java:1494) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)Caused by: java.lang.UnsupportedOperationException: clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+ at okhttp3.internal.Jdk9Platform.trustManager(Jdk9Platform.java:78) at okhttp3.OkHttpClient$Builder.sslSocketFactory(OkHttpClient.java:554) at org.apache.nifi.processors.elasticsearch.AbstractElasticsearchHttpProcessor.createElasticsearchClient(AbstractElasticsearchHttpProcessor.java:214) at org.apache.nifi.processors.elasticsearch.AbstractElasticsearchProcessor.setup(AbstractElasticsearchProcessor.java:92) at org.apache.nifi.processors.elasticsearch.PutElasticsearchHttp.setup(PutElasticsearchHttp.java:205) ... 15 common frames omitted
I saw a post with the same issue but on Nifi 1.10.0. Not sure it's the same cause or not. Here the post https://issues.apache.org/jira/browse/NIFI-6930
Should we upgrade to higher version of Nifi to fix this issue or just wait for another fixed version of java-1.8.0-openjdk.x86_64?
Thanks for your help.
Phung Nguyen
Attachments
Issue Links
- is related to
-
NIFI-6927 PutElasticsearchHttp 1.10.0 with java 11 Fails to initialize due to "clientBuilder.sslSockerFactory(SSLSocketFactory) not supported on JDK 9+
- Resolved