Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

which metrics2 properties file to use for registering new sink

Highlighted

which metrics2 properties file to use for registering new sink

New Contributor

I want to register a new sink for collecting apache metrics2 information from Hadoop daemon processes.

For this, I want to add lines like below in metrics2.properties file.

namenode.sink.myplugin.test=true

datanode.sink.myplugin.test=true

However, I have many metrics2 properties files. Which metrics2 properties file do I need to update for registering new sink for collecting apache metrics2 information amongst below:

I see there are many metrics2 properties files on my machine as listed below:

# find / -name hadoop-metrics2.properties* -print

If I run above command, I see around 20 metrics2 properties file on my machine.

Out of all above metrics2 properties file, which file should I update ?

Please kindly provide your inputs.

Don't have an account?
Coming from Hortonworks? Activate your account here