Details
-
Sub-task
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
2.4.0
-
None
-
Reviewed
Description
ConverterUtils has a bunch of functions that are useful to application masters. It should either be made public or we make some of the utilities in it public or we provide other external apis for application masters to use. Note that distributedshell and MR are both using these interfaces.
For instance the main use case I see right now is for getting the application attempt id within the appmaster:
String containerIdStr =
System.getenv(Environment.CONTAINER_ID.name());
ConverterUtils.toContainerId
ContainerId containerId = ConverterUtils.toContainerId(containerIdStr);
ApplicationAttemptId applicationAttemptId =
containerId.getApplicationAttemptId();
I don't see any other way for the application master to get this information. If there is please let me know.