[ 
https://issues.apache.org/jira/browse/NIFI-6930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024719#comment-17024719
 ] 

Troy Melhase commented on NIFI-6930:
------------------------------------

I've been able to reproduce this  behavior, so I can take this ticket and start 
working on a fix.  Thank you for the report [~mpercival] and [~agturley] .

{{$ uname -a}}
{{Linux localhost 5.3.0-26-generic #28~18.04.1-Ubuntu SMP Wed Dec 18 16:40:14 
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux}}{{}}


{{$ java -version}}
{{openjdk version "11.0.5" 2019-10-15}}
{{OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)}}
{{OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed 
mode)}}{{ }}

 

{{$ cat logs/nifi-app.log }}{{2020-01-27 13:20:39,157 ERROR [Timer-Driven 
Process Thread-2] o.a.n.p.e.QueryElasticsearchHttp 
QueryElasticsearchHttp[id=e8b479fb-016f-1000-7a99-ee36f19352d3] 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.UnsupportedOperationException: 
clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+: 
java.lang.UnsupportedOperationException: 
clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+}}
{{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:215)}}
{{ at 
org.apache.nifi.processors.elasticsearch.AbstractElasticsearchProcessor.setup(AbstractElasticsearchProcessor.java:92)}}
{{ at 
org.apache.nifi.processors.elasticsearch.QueryElasticsearchHttp.setup(QueryElasticsearchHttp.java:260)}}
{{ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)}}
{{ at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)}}
{{ at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
{{ at java.base/java.lang.reflect.Method.invoke(Method.java:567)}}
{{ 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:1532)}}
{{ at org.apache.nifi.engine.FlowEngine$3.call(FlowEngine.java:123)}}
{{ at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)}}
{{ at 
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)}}
{{ at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)}}
{{ at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)}}
{{ at java.base/java.lang.Thread.run(Thread.java:830)}}

 

 

 

 

 

> PutElasticSearchHttp 1.10.0 SSLSocketFactory not supported on JDK 9+
> --------------------------------------------------------------------
>
>                 Key: NIFI-6930
>                 URL: https://issues.apache.org/jira/browse/NIFI-6930
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.10.0
>         Environment: RHEL 8, JDK 11.0.4+11-LTS, Secure Cluster, ElasticSearch 
> 7.5
>            Reporter: Michael Percival
>            Assignee: Troy Melhase
>            Priority: Major
>
> Recently created a greenfield secure Nifi cluster with 6 servers. Muliple 
> input methods including TCP/UDP TLS 1.2/Cleartext and ListenBeats (TLS 1.2). 
> When attempting to now send these JSON formatted events to elasticsearch 
> (7.5) via the PutElasticsearchHttp processor i get the following error:
>  PutElasticsearchHttpRecord 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.UnsupportedOperationException: 
> clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+: 
> java.lang.UnsupportedOperationException: 
> clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+
> I have attempted using the various other ElasticSearch processors 
> (PutElasticSearch5, PutElasticsearchHttpRecord, PutElasticSearch) but faced 
> the same error on each. I have double checked all SSL configuration in the 
> instance (controllors and key/trust stores) and found no inconsistencies, 
> given these SSL controllors are also working for the ListenBeats and other 
> functions it is unlikely these are a factor.
> Found some possibly relevant articles:
> [https://stackoverflow.com/questions/50594350/alternative-to-sslsocketfactory-in-java10]
> [https://www.bountysource.com/issues/73003979-java-11-can-t-use-ssl-clientbuilder-sslsocketfactory-sslsocketfactory-not-supported-on-jdk-9]
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to