You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Shigin Wang <sh...@gmail.com> on 2021/08/10 10:15:12 UTC
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!
RE: a problem about data persistence when the nifi server deployed on
k8s
Posted by Shawn Weeks <sw...@weeksconsulting.us>.
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 <sh...@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!