@Veerendra Nath Jasthi
In UpdateAttribute add new attribute as
ts
value as
${now():format("yyyy_MM_dd_HH_mm_ss_SSS")}
Example:
ts attribute will have value as 2019_06_12_20_42_26_762
Then in PutHDFS processor configure directory as
/<path>/${ts}
(or)
You can skip UpdateAttribute processor and directly use directory name as
/<path>/${now():format("yyyy_MM_dd_HH_mm_ss_SSS")}
In PutHDFS processor.
This will create a directory in HDFS with current timestamp value.
You can change the format of the timestamp using NiFi expression language.