TEZ-4689: Introduce Node abstraction for DAGAppMaster instead of sepagrate NodeManager-related fields#461
Conversation
| private final int nmPort; | ||
| private final int nmHttpPort; | ||
| private String nmHost; | ||
| private int nmPort; |
There was a problem hiding this comment.
nmPort is not used anywhere but still keeping getAppNMPort() public api
| if (!isLocal) { | ||
| this.nmHost = nodeContext.getNodeHostString(); | ||
| int nmHttpPort = Integer.parseInt(nodeContext.getNodeHttpPortString()); | ||
| this.containerLogs = |
There was a problem hiding this comment.
this.containerLogs is making use of nmHttpPort and nmHost, moved it from constructor to serviceInit() and made nmHttpPort as local variable
c7923b1 to
fca17d7
Compare
| DAGProtos.ConfigurationProto confProto = amExtensions.loadConfigurationProto(); | ||
| TezUtilsInternal.addUserSpecifiedTezConfiguration(conf, confProto.getConfKeyValuesList()); | ||
|
|
||
| NodeContext nodeContext = new YarnNodeManagerContext(); |
There was a problem hiding this comment.
I don't think we need to wrap in if statement for checking if framework is yarn. As the YarnNodeManagerContext is using supplier it won't be evaluated immediately and evaluation will happen only it !isLocal.
NOTE: in tez-am docker image tez.local.mode = true
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
| TezConfiguration.TEZ_LOCAL_MODE_DEFAULT); | ||
|
|
||
| if (!isLocal) { | ||
| this.nmHost = nodeContext.getNodeHostString(); |
There was a problem hiding this comment.
This change is causing UT failues in TestMockDAGAppMaster.java because
is null post this change i.e. moving nmHost outside constructor. Working on fix...There was a problem hiding this comment.
fixed. tested on local.
…rate NodeManager-related fields
fca17d7 to
5e12682
Compare
|
🎊 +1 overall
This message was automatically generated. |
No description provided.