You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/01/28 11:08:00 UTC

[jira] [Commented] (MINIFI-435) MiNiFi - Cannot perform secured S2S with NiFi 1.5.0

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

ASF GitHub Bot commented on MINIFI-435:
---------------------------------------

GitHub user pvillard31 opened a pull request:

    https://github.com/apache/nifi-minifi/pull/113

    MINIFI-435 - updated httpcomponents versions to match NiFi dependencies

    Thank you for submitting a contribution to Apache NiFi - MiNiFi.
    
    In order to streamline the review of the contribution we ask you
    to ensure the following steps have been taken:
    
    ### For all changes:
    - [ ] Is there a JIRA ticket associated with this PR? Is it referenced 
         in the commit message?
    
    - [ ] Does your PR title start with MINIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
    
    - [ ] Has your PR been rebased against the latest commit within the target branch (typically master)?
    
    - [ ] Is your initial contribution a single, squashed commit?
    
    ### For code changes:
    - [ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi-minifi folder?
    - [ ] Have you written or updated unit tests to verify your changes?
    - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? 
    - [ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under minifi-assembly?
    - [ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under minifi-assembly?
    
    ### For documentation related changes:
    - [ ] Have you ensured that format looks appropriate for the output in which it is rendered?
    
    ### Note:
    Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvillard31/nifi-minifi MINIFI-435

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi-minifi/pull/113.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #113
    
----
commit 25f82e5f9c00f53f97dd370568e1d2a1c5d1e07b
Author: Pierre Villard <pi...@...>
Date:   2018-01-28T11:06:39Z

    MINIFI-435 - updated httpcomponents versions to match NiFi dependencies

----


> MiNiFi - Cannot perform secured S2S with NiFi 1.5.0
> ---------------------------------------------------
>
>                 Key: MINIFI-435
>                 URL: https://issues.apache.org/jira/browse/MINIFI-435
>             Project: Apache NiFi MiNiFi
>          Issue Type: Bug
>          Components: Data Transmission
>    Affects Versions: 0.4.0
>            Reporter: Pierre Villard
>            Priority: Blocker
>             Fix For: 0.5.0
>
>
> I think that, similarly to MINIFI-431, there is a dependency issue preventing the possibility to perform S2S over HTTPS between MiNiFi 0.4.0 and NiFi 1.5.0. When trying to perform secured S2S, I get the following exception:
> {noformat}
> 2018-01-27 22:41:57,581 WARN [Timer-Driven Process Thread-4] o.a.n.c.t.ContinuallyRunConnectableTask RemoteGroupPort[name=IOT_Input,targets=https://...:9091/nifi] Administratively Pausing for 10 seconds due to processing failure: java.lang.RuntimeException: java.lang.NoSuchMethodError: org.apache.http.impl.client.HttpClientBuilder.setSSLContext(Ljavax/net/ssl/SSLContext;)Lorg/apache/http/impl/client/HttpClientBuilder;
> java.lang.RuntimeException: java.lang.NoSuchMethodError: org.apache.http.impl.client.HttpClientBuilder.setSSLContext(Ljavax/net/ssl/SSLContext;)Lorg/apache/http/impl/client/HttpClientBuilder;
>         at org.apache.nifi.controller.AbstractPort.onTrigger(AbstractPort.java:257)
>         at org.apache.nifi.controller.tasks.ContinuallyRunConnectableTask.call(ContinuallyRunConnectableTask.java:81)
>         at org.apache.nifi.controller.tasks.ContinuallyRunConnectableTask.call(ContinuallyRunConnectableTask.java:40)
>         at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:128)
>         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)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoSuchMethodError: org.apache.http.impl.client.HttpClientBuilder.setSSLContext(Ljavax/net/ssl/SSLContext;)Lorg/apache/http/impl/client/HttpClientBuilder;
>         at org.apache.nifi.remote.util.SiteToSiteRestApiClient.setupClient(SiteToSiteRestApiClient.java:278)
>         at org.apache.nifi.remote.util.SiteToSiteRestApiClient.getHttpClient(SiteToSiteRestApiClient.java:219)
>         at org.apache.nifi.remote.util.SiteToSiteRestApiClient.execute(SiteToSiteRestApiClient.java:1189)
>         at org.apache.nifi.remote.util.SiteToSiteRestApiClient.execute(SiteToSiteRestApiClient.java:1237)
>         at org.apache.nifi.remote.util.SiteToSiteRestApiClient.fetchController(SiteToSiteRestApiClient.java:419)
>         at org.apache.nifi.remote.util.SiteToSiteRestApiClient.getController(SiteToSiteRestApiClient.java:394)
>         at org.apache.nifi.remote.util.SiteToSiteRestApiClient.getController(SiteToSiteRestApiClient.java:361)
>         at org.apache.nifi.remote.client.SiteInfoProvider.refreshRemoteInfo(SiteInfoProvider.java:69)
>         at org.apache.nifi.remote.client.SiteInfoProvider.getSiteToSiteHttpPort(SiteInfoProvider.java:160)
>         at org.apache.nifi.remote.client.http.HttpClient.getBootstrapPeerDescription(HttpClient.java:90)
>         at org.apache.nifi.remote.client.PeerSelector.fetchRemotePeerStatuses(PeerSelector.java:379)
>         at org.apache.nifi.remote.client.PeerSelector.refreshPeers(PeerSelector.java:352)
>         at org.apache.nifi.remote.client.PeerSelector.createPeerStatusList(PeerSelector.java:316)
>         at org.apache.nifi.remote.client.PeerSelector.getNextPeerStatus(PeerSelector.java:275)
>         at org.apache.nifi.remote.client.http.HttpClient.createTransaction(HttpClient.java:129)
>         at org.apache.nifi.remote.StandardRemoteGroupPort.onTrigger(StandardRemoteGroupPort.java:238)
>         at org.apache.nifi.controller.AbstractPort.onTrigger(AbstractPort.java:250)
>         ... 10 common frames omitted{noformat}
> When doing the same between MiNiFi 0.3.0 and NiFi 1.5.0, it works as expected.
> I believe this could be related to NIFI-3954 / [https://github.com/apache/nifi/pull/1841]
> I'll try to update the dependency to the same versions on MiNiFi side and try secured S2S.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)