MiNiFi unable to connect ke NiFi

Issue

MiNiFi java agent cannot connect to NiFi server with following error:

Caused by: org.apache.nifi.controller.exception.CommunicationsException: Unable to communicate with Remote NiFi at URI https://nifi.example.com:8443/nifi due to: response code 401:Unauthorized with explanation: null

o.a.nifi.remote.client.http.HttpClient Couldn't find a valid peer to communicate with

org.apache.nifi.controller.exception.CommunicationsException: org.apache.nifi.controller.exception.CommunicationsException: Unable to communicate with Remote NiFi at URI https://nifi.example.com:8443/nifi due to: response code 403:Forbidden with explanation: null

[Http Site-to-Site PeerSelector] o.a.n.r.util.SiteToSiteRestApiClient Failed to get controller from https://nifi.example.com:8443/nifi-api due to org.apache.nifi.remote.util.SiteToSiteRestApiClient$HttpGetFailedException: response code 403:Forbidden with explanation: null

WARN org.apache.nifi.remote.StandardPublicPort: StandardPublicPort[id=f67132d3-3229-190d-ffff-ffffceaa9307,name=fromMinifi] authorization failed for user minifi.example.com because Unable to modify data transfers to Input Port with ID f67132d3-3229-190d-ffff-ffffceaa9307.

Resolution

  • Add Minifi node as NiFi user: image.png

  • Grant that node to these policies: image.png

References