Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is fairly easy to set up an unencrypted data flow from MiNiFi c++ to NiFi: https://nifi.apache.org/minifi/getting-started.html.

If you want the data flow to use HTTPS, that is a bit more complicated; below is a description of how to do it.  (Tested with NiFi 1.12.1 and MiNiFi c++ 0.7.0.)

Step-by-step guide

First, go to https://kylo.readthedocs.io/en/v0.10.0/security/ConfigureNiFiWithSSL.html and create a self-signed certificate as described there:

...

  1. Set up the certificate in minifi.properties:

    Code Block
    nifi.remote.input.secure=true
    nifi.security.need.ClientAuth=false
    nifi.security.client.certificate=/opt/nifi/data/ssl/nifi-rest.crt
    nifi.security.client.private.key=/opt/nifi/data/ssl/nifi-rest.key
    nifi.security.client.pass.phrase=/opt/nifi/data/ssl/CN=minifi_OU=NIFI.password
    nifi.security.client.ca.certificate=/opt/nifi/data/ssl/nifi-cert.pem
    
    # These are not needed
    #nifi.rest.api.user.name=
    #nifi.rest.api.password=


  2. Update the NiFi address in config.yml by changing http  to https and changing the port from 8080 to 9443 in the Remote Process Group:

    Code Block
    Remote Process Groups:
    - id: 1ca9d943-0175-1000-2188-4d25f7418459
      name: https://<hostname>:9443/nifi/
      url: https://<hostname>:9443/nifi/
      comment: ''
      timeout: 30 secs
      yield period: 10 sec
      transport protocol: RAW
      proxy host: ''
      proxy port: ''
      proxy user: ''
      proxy password: ''
      local network interface: ''
      Input Ports:
      - id: c171f9da-689f-41e2-98c4-9d785c59c306
        name: c171f9da-689f-41e2-98c4-9d785c59c306
        comment: ''
        max concurrent tasks: 1
        use compression: true
      Output Ports: []

    And restart MiNiFi.

Content by Label
showLabelsfalse
max5
spacesMINIFI
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("sitetosite","https","tls") and type = "page" and space = "MINIFI"
labelsHTTPS TLS SiteToSite

...