๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐Ÿ’งnifi

[NiFi] FlowFile "Details" ๊ฐ’ attribute ์ถ”์ถœ ๋ฐฉ๋ฒ•

by _viper_ 2023. 4. 21.
๋ฐ˜์‘ํ˜•

 


Details ํƒญ์—์„œ Filename, File Size ๋ผ๋Š” ๊ฐ’์„ attribute๋กœ ์ถ”์ถœํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

UdateAttribute ํ”„๋กœ์„ธ์„œ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์ •ํ•ด์ฃผ๋ฉด ํ•ด๋‹น ๊ฐ’์„ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

์†์„ฑ์ด๋ฆ„: my_file_name

์†์„ฑ๊ฐ’: ${filename}

 

์†์„ฑ์ด๋ฆ„: my_file_size

์†์„ฑ๊ฐ’: ${fileSize}