Gaffer
Gaffer copied to clipboard
Add enumerated types for HDFS counters
HDFS counters can be retrieved from the current context in two ways:
context.getCounter(String, String)
context.getCounter(Enum)
Currently, we are using hardcoded Strings throughout the project to get Counter instances. Would it be better to add (and use) enumerated types going forwards?
If enumerated types are used, how are they referenced from the REST API? At some point we may want to introduce monitoring that uses the Jobtracker REST APT to retrieve information about the counters. How would they be identified using the enum?
Sorry, this is not going to happen.