Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Apace NiFi Configure Processor Redirect nifi-api

Apace NiFi Configure Processor Redirect nifi-api

New Contributor

Apache NiFi Processor Configure issue,

Apache NiFi Kubernetes service installed and its running on Cluster Node. The Ingress, Kongingress and services are created for accessing the NiFi service outside of the cluster. NiFi service is accessible with this url:  http://<DNS-Host>/nifi/

Deployment-nifi.yaml

---

apiVersion: apps/v1beta1

kind: Deployment

metadata:

  name: nifi

spec:

  replicas: 1

  template:

    metadata:

      labels:

        app: nifi

    spec:

      containers:

      - name: nifi

        image: apache/nifi:1.9.2

        ports:

        - containerPort: 8080

Ingress-nifi.yaml

---

apiVersion: extensions/v1beta1

kind: Ingress

metadata:

  name: nifi

  namespace: xxxdev

  labels:

   app: nifi              

spec:

  rules:

  - host: dev.xxx.nonprod.cloud.trans.apps.xx.com

    http:

      paths:

      - backend:

          serviceName: nifi

          servicePort: 8080

        path: /

---

apiVersion: configuration.konghq.com/v1

kind: KongIngress

metadata:

  name: nifi

  namespace: xxxdev

route:

  methods:

  - POST

  - GET

  - PUT

  - DELETE

  - PATCH

  - OPTIONS

  preserve_host: true

  protocols:

  - http

  - https

  regex_priority: 0

  strip_path: true

Service-nifi.yaml

apiVersion: v1

kind: Service

metadata:

  name: nifi

  namespace: xxxdev

  labels:

    app: nifi

spec:

  selector:

    app: nifi

  ports:

  - port: 8080

    name: http

    targetPort: 8080

  type: ClusterIP

Apache NiFi Dashboard UI

 Screenshot 2019-09-13 at 11.42.07 AM.png

When we configure the processor, the redirection is happening for processors and not able to open the configuration part. We are able to open some of the processor options like status history, view usage, change color, data provenance etc. But configure, delete requests are redirecting to /nifi-api with the URL adding 8000 ports.

http://<DNS-Host>:8000/nifi-api/processors/24f25eb5-016d-1000-fb0b-78e825958bde

Apache NiFi runs on 8080 ports but the nifi-api request using 8000 ports, and this message shows in the NiFi dashboard when requested the configure, delete api call.

Unable to communicate with NiFi

Please ensure the application is running and check the logs for any errors.  

Need support to fix this port where and how its configured.

Don't have an account?
Coming from Hortonworks? Activate your account here