You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by metalfemurs <jo...@veritone.com> on 2020/01/19 18:43:18 UTC
SiteToSiteProvenanceReportingTask - Input Port
I am building a NiFi Cluster with SiteToSiteProvenanceReportingTask. The task
requires that I define an input port name to deliver data to another NiFi
instance. This is all straight forward and works like a charm if I am able
to go to the Provenance instance and manually create that Input Port.
However, I am using Docker and setting up everything using the API. So far,
there is no way that I can tell how to create an Input Port on the new
instance before importing my Process Group from the registry.
I would like to do something like:
a) Creating NiFi Registry Controller. - POST controller/registry-clients (No
problem)
b) Get latest version - cli.sh registry list-flow-versions (No problem)
c) Import Process Group - cli.sh nifi pg-import (No problem)
d) Create Input Port (*My issue* - CANT SEEM TO FIGURE OUT)
e) Connect the Input Port to the Process Group (*My issue* - NEED TO SOLVE
d)
f) Enable Services - cli.sh nifi pg-enable-services (No problem)
e) Start Process Group - cli.sh nifi pg-start (No problem)
Can anyone help?
--
Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/
Re: SiteToSiteProvenanceReportingTask - Input Port
Posted by metalfemurs <jo...@veritone.com>.
*I figured it out.*
GET the root process group:
http://localhost:8080/nifi-api/flow/process-groups/*root*
Retrieve the ID.
POST:
http://localhost:8080/nifi-api/process-groups/${process-group-id}/input-ports
Inspecting Chrome's Dev Tools is the key to almost everything API related
--
Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/
Re: SiteToSiteProvenanceReportingTask - Input Port
Posted by metalfemurs <jo...@veritone.com>.
I have tried including the input port in my process group but of course that
will not work because a port needs to feed data into the group. I have also
tried creating a parent process group that has the input port and a process
group for handling the provenance data, then creating a template of the
inner input port and process group, BUT I can't seem to import that template
to the root Nifi Flow without manually going to the instance and dragging
the 'Add template' icon.
--
Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/