본문 바로가기
DevOps/Data Lake

nifi-api

by SeleniumBindingProtein 2023. 1. 16.
728x90
반응형

 

  • Rest API는 NiFi 인스턴스를 실시간으로 명령하고 제어하기 위한 프로그래밍 방식의 액세스 제공
  • 프로세서를 시작 및 중지하고, 대기열을 모니터링하고, 출처 데이터를 쿼리하는 등의 작업 수행 가능
  • 내 목적에 맞게 코드를 개발한 다음, nifi-api를 활용하여 데이터 flow를 restAPI로 쉽게 컨트롤 할 수 있음

  • GET 
    • /processors/{id}를 통해 nifi에서 만든 flow를 확인할 수 있음

  • PUT 
    • /processors/{id}
    • ["component"]["state"]의 값은 'STOPPED' 상태이며, PUT restAPI를 이용하여 'RUNNING'으로 변경하여 실행할 수 있음

  • PUT
    • /processors/{id}/run-status
    • 실행 중인 flow는 ["component"]["state"]의 값은 'RUNNING' 상태이며, PUT restAPI를 이용하여 'STOPPED' 으로 변경하여 중지시킬 수 있음

 

https://nifi.apache.org/docs/nifi-docs/rest-api/index.html

 

NiFi Rest API-1.19.1

POST Submits a lineage query Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the up

nifi.apache.org

728x90
반응형

'DevOps > Data Lake' 카테고리의 다른 글

Python FastAPI - RestAPI  (0) 2023.01.16
Python FastAPI - restAPI를 활용한 mssql 연동  (0) 2023.01.16
Python_FastAPI : MSSQL 연동  (0) 2023.01.10
Data Lake 개념정리  (0) 2022.04.05

댓글