티스토리 뷰

728x90

Multipart로 request 받은 후, 관련 처리를 InvokeHTTP로 해주고, response를 내려주면 계속 파일도 함께 내려가는 경우가 발생.

- Ignore response's content : Disable writing HTTP response FlowFiles to Response relationship

InvokeHTTP processor의 Response를 그대로 HandleHttpResponse로 내려주어 발생하는 문제이다.

위 properties를 true로 설정 시 response에 code만 내려줄 수 있다.

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.3/org.apache.nifi.processors.standard.InvokeHTTP/index.html

 

InvokeHTTP

HTTP MethodGETHTTP request method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS). Arbitrary methods are also supported. Methods other than POST, PUT and PATCH will be sent without a message body.Supports Expression Language: true (will be evaluated using f

nifi.apache.org

 

또는 ModifyBytes processor를 추가해 content를 지울 수도 있다.

- Remove All Content: Remove all content from the FlowFile superseding Start Offset and End Offset properties.

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.3/org.apache.nifi.processors.standard.ModifyBytes/

 

ModifyBytes

Start Offset0 BNumber of bytes removed at the beginning of the file.Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)

nifi.apache.org

 

728x90
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/10   »
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