You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Kevin Doran (Jira)" <ji...@apache.org> on 2020/02/07 21:40:00 UTC

[jira] [Created] (MINIFICPP-1149) Controller Socket is not compatible with C2 RESTSender

Kevin Doran created MINIFICPP-1149:
--------------------------------------

             Summary: Controller Socket is not compatible with C2 RESTSender
                 Key: MINIFICPP-1149
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1149
             Project: Apache NiFi MiNiFi C++
          Issue Type: Test
    Affects Versions: 0.7.0
            Reporter: Kevin Doran
            Assignee: Arpad Boda


When enabling both the controller socket and the C2 RESTSender, I get failures for the RESTSender when the controller fails to bind:

 
minifi.properties:

{noformat}
nifi.c2.enable=true
nifi.c2.agent.protocol.class=RESTSender

## base URL of the c2 server,
## very likely the same base url of rest urls
nifi.c2.flow.base.url=http://localhost:10080/efm/api/c2-protocol
nifi.c2.rest.url=http://localhost:10080/efm/api/c2-protocol/heartbeat
nifi.c2.rest.url.ack=http://localhost:10080/efm/api/c2-protocol/acknowledge
nifi.c2.root.classes=DeviceInfoNode,AgentInformation,FlowInformation

#...

## enable the controller socket provider on port 9998
## off by default. C2 must be enabled to support these
controller.socket.host=localhost
controller.socket.port=9988
{noformat}

errors:

{noformat}
[2020-02-07 18:37:38.870] [org::apache::nifi::minifi::c2::C2Agent] [info] Class is RESTSender
[2020-02-07 18:37:38.872] [org::apache::nifi::minifi::io::Socket] [error] Could not bind to socket, reason Address family not supported by protocol
{noformat}




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