티스토리 뷰
Nifi의 클러스터 환경에서 특정 노드만 재기동시 이전 상태와 다르게 service들이 disabled 되는 경우가 있다.
실제로 flow.xml을 확인해보면 재기동 전과 후가 달라져 있는 것으로 볼 수 있으며, 이전 파일은 archive 폴더도 아니고 그 자리에 백업 시간으로 이루어진 백업본 파일이 만들어진다.
이전 flow.xml.gz -> flow-2024-01-23-08-09-34.xml.gz 형태로 변환
<controllerService>
<id>5e58b636-018a-1000-0000-00000c588f0e</id>
<name>JsonTreeReader</name>
<comment/>
<class>org.apache.nifi.json.JsonTreeReader</class>
<bundle>
<group>org.apache.nifi</group>
<artifact>nifi-record-serialization-services-nar</artifact>
<version>1.15.2</version>
</bundle>
<enabled>true</enabled>
...
재기동 전
<controllerService>
<id>5e58b636-018a-1000-0000-00000c588f0e</id>
<name>JsonTreeReader</name>
<comment/>
<class>org.apache.nifi.json.JsonTreeReader</class>
<bundle>
<group>org.apache.nifi</group>
<artifact>nifi-record-serialization-services-nar</artifact>
<version>1.15.2</version>
</bundle>
<enabled>false</enabled>
...
재기동 후
이러한 현상을 해결하기 위해서는 Ambari의 config나 Nifi config에서 'nifi.flowcontroller.autoResumeState' 설정을 true로 변경하면은 재기동 이전과 동일한 상태로 복구된다.
다만, true 값은 기본값이기에 false로 되어있다면 이유가 있어서 변경될 가능성이 높기 때문에 바꾸기 전 영향도를 확인하고 변경 값을 적용한다.
만약 개발 중에 데이터가 꼬이는 것을 방지하기 위해서 false로 했다가 운영 환경 전환되어 flow 변경이 잦지 않다면은 해당 값을 원래 설정인 true로 변환해야 노드 재기동시 어려움이 없다.
'BigData > Nifi' 카테고리의 다른 글
Password verification failed 해결 방법 (0) | 2024.11.01 |
---|---|
Exception:org.apache.nifi.encrypt.EncryptionException: Decryption Failed with Algorithm 에러 조치 (1) | 2024.01.04 |
Proposed configuration is not inheritable by the flow controller because of flow differences 에러 조치 (1) | 2024.01.04 |
Apache Nifi flow.xml.gz 뜯어보기 (1) | 2024.01.04 |
Apache Nifi Architecture 정리 (1) | 2024.01.04 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Discovery Rule
- flow.xml.gz
- 실시간처리
- Dataflow
- nifi.flowcontroller.autoResumeState
- Nifi Architecture
- hadoop
- namenode
- Apache
- lld
- Nifi Service
- nifi
- java8
- bigdata #data_mesh
- 설정에러
- spark driver
- Item Prototypes
- hdfs
- 빅데이터
- flink
- prometheus
- exporter
- openjdk1.8
- error
- MAT
- OOM
- Bigdata
- zabbix
- Apache Nifi
- Federation
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함