규턴의 개발블로그
article thumbnail

NiFi-Registry

 

우선 내가 생각하는 nifi-registry는 git과 비슷한거 같음

NiFi-process(processgroup)을 형상관리 한다고 생각하고 있다.

 

Flow: Nifi-ProcessGroup들이 Nifi-registry 내에서  버전 컨트롤 및 save 등의 단위Bucket: Flow들을 저장하고 구성하는 한 컨테이너(nifi-registry내에서의 단위)

 

또한 NiFi-regsitry에서 사용자 권한을 주어 각 Bucket(github으로 따지면 하나의 repo?)에 권한부여를 줄 수 있음

 

설치 및 시작

 

https://nifi.apache.org/registry.html

 

Apache NiFi Registry

Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, NiFi, Apache NiFi and the project logo are trademarks of The Apache Software Foundation.

nifi.apache.org

해당 링크에서 다운받을 수 있음

 

bin/nifi-registry.sh run : 포그라운드 실행

bin/nifi-registry.sh start: 백그라운드 실행

bin/nifi-registry.sh restart: 재실행(백그라운드)

bin/nifi-registry.sh status: 현재 상태 확인 가능

 

NiFi와 연동

nifi-regsitry ui

 

일단 기본포트는 18080

http://localhost:18080/nifi-registry 로 접속가능(default)

 

이후

버튼을 눌려 Bucket을 생성가능하다.

 

 

 

 

 

 

 

 

nifi와 연동

이후 nifi에서 Controller Settings를 통해 Nifi-registry를 연동할 수 있다.

 

 

processGroup을 생성하고 Version을 눌려 start Version control을 누른다.

 

 

이후 Bucket은 이전에 nifi-registry에서만들었던 bucket인 Test를 사용하고 FlowName은 하나의 브랜치라고 생각하면 된다.

이후 VersionComments로 커밋 메세지를 남기는 방식이다.

 

 

 

이후 nifi-regsity에 접속하면 NiFi에서 Bucket연결을 하였기에 해당 ProcessGroup이 잘 잘관리되는것을볼 수 있다.

 

 

또한 NiFi에서도 해당 ProcessGroup이 어떻게 변경되었는지 변경내역을 확인할 수 있다.

 

 

NiFi와 연동시 Https

 

내가 겪었던 문제는 Nifi-Registry가 Http이면 문제없이 연동이 되지만, Nifi를 Https로 연동할 시 SSl HandShake문제가 일어난다. 

Nifi와 NiFi-registry끼리 HandShake하기 위해선 같은 RootCa에서 만들어진 인증서가 필요하다. 그렇기에 서로 신뢰할 수 있다.

 

실제로 다른 RootCA의 인증을 받은 인증서끼리는 안되는것을 확인하였다.

 

참고로 사설인증서를 생성하였고 해당 방법은 https://nifi.apache.org/docs.htmld

 

Apache NiFi Documentation

Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, NiFi, Apache NiFi and the project logo are trademarks of The Apache Software Foundation.

nifi.apache.org

에서 참고하여 만들었다(standalone 사용)

 

NiFi가 확실히 보안관련해서는 어렵긴하다...

 

참고

https://nifi.apache.org/docs/nifi-registry-docs/index.html

 

NiFi Registry Documentation

No matching guides No matching developer guides

nifi.apache.org

 

'data > nifi' 카테고리의 다른 글

[NiFi] jdk 11 에서의 트러블 슈팅 및 메일을 보내다  (0) 2022.10.25
[NiFi]Nifi - GettingStarted  (0) 2022.08.16
[NiFi] NiFi란?  (0) 2022.08.11
profile

규턴의 개발블로그

@규턴이

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!