Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.1
-
None
-
Reviewed
Description
We need a metrics2 sink that can write metrics to HDFS. The sink should accept as configuration a "directory prefix" and do the following in putMetrics()
- Get yyyyMMddHH from current timestamp.
- If HDFS dir "dir prefix" + yyyyMMddHH doesn't exist, create it. Close any currently open file and create a new file called <hostname>.log in the new directory.
- Write metrics to the current log file.