Gaffer icon indicating copy to clipboard operation
Gaffer copied to clipboard

Add enumerated types for HDFS counters

Open t616178 opened this issue 7 years ago • 1 comments

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?

t616178 avatar Oct 31 '16 16:10 t616178

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?

gaffer01 avatar Nov 04 '16 10:11 gaffer01

Sorry, this is not going to happen.

n3101 avatar Aug 30 '22 14:08 n3101