What are you using for your persistence layer(PV) and is NiFi using the same 
volume when you restart?

Thanks
Shawn

-----Original Message-----
From: Shigin Wang <shig...@gmail.com> 
Sent: Tuesday, August 10, 2021 5:15 AM
To: dev@nifi.apache.org
Subject: a problem about data persistence when the nifi server deployed on k8s

the diroctories has been mounted as below:

```

volumeMounts:
  - name: volume-0
    mountPath: /opt/nifi/nifi-current/flowfile_repository
    subPath: flowfile_repository
  - name: volume-0
    mountPath: /opt/nifi/nifi-current/content_repository
    subPath: content_repository
  - name: volume-0
    mountPath: /opt/nifi/nifi-current/provenance_repository
    subPath: provenance_repository
  - name: volume-0
    mountPath: /opt/nifi/nifi-current/database_repository
    subPath: database_repository
  - name: volume-0
    mountPath: /opt/nifi/nifi-current/state
    subPath: state
  - name: volume-0
    mountPath: /opt/nifi/nifi-current/logs
    subPath: logs
  - name: volume-0
    mountPath: /opt/nifi/nifi-current/work
    subPath: work
  - name: nifi-config
    mountPath: /opt/nifi/scripts/start.sh
    subPath: start.sh
  - name: nifi-config
    mountPath: /opt/nifi/nifi-current/conf/bootstrap.conf
    subPath: bootstrap.conf

```


but data in nifi would be disappeared after restarted!

Reply via email to