[
https://issues.apache.org/jira/browse/YARN-9089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719827#comment-16719827
]
Akhil PB edited comment on YARN-9089 at 12/13/18 6:46 AM:
----------------------------------------------------------
Hi [~eyang], Could please add the following changes. I had missed those in the
last comments.
# Change the following code
{code:java}
function getNodeManagerPort() {
var httpUrl = window.location.protocol + "//" +
window.location.hostname + ":" +
window.location.port + "/conf?name=" +
"yarn.nodemanager.webapp.address";
var port = "8042";
$.ajax({
type: 'GET',
dataType: 'json',
async: false,
context: this,
url: httpUrl,
success: function(data) {
port = data.property.value.split(":")[1];
},
error: function() {
port = "8042";
}
});
return port;
}
{code}
to the following code:
{code:java}
function getNodeManagerPort(rmhost, application) {
var httpUrl = window.location.protocol + "//" +
(ENV.hosts.localBaseAddress ? ENV.hosts.localBaseAddress + '/' : '') +
rmhost
+ ":" + window.location.port + "/conf?name=yarn.nodemanager.webapp.address";
var port = "8042";
$.ajax({
type: 'GET',
dataType: 'json',
async: false,
context: this,
url: httpUrl,
success: function(data) {
port = data.property.value.split(":")[1];
application.advanceReadiness();
},
error: function() {
port = "8042";
application.advanceReadiness();
}
});
return port;
}
{code}
# Change the following code
{code:java}
var nodeManagerPort = getNodeManagerPort();
{code}
to the following one.
{code:java}
var nodeManagerPort = getNodeManagerPort(rmhost, application);
{code}
was (Author: akhilpb):
Hi [~eyang], Could please add the following changes. I had missed those in the
last comments.
# Change the following code
{code:java}
function getNodeManagerPort() {
var httpUrl = window.location.protocol + "//" +
window.location.hostname + ":" +
window.location.port + "/conf?name=" +
"yarn.nodemanager.webapp.address";
var port = "8042";
$.ajax({
type: 'GET',
dataType: 'json',
async: false,
context: this,
url: httpUrl,
success: function(data) {
port = data.property.value.split(":")[1];
},
error: function() {
port = "8042";
}
});
return port;
}
{code}
to the following code:
{code:java}
function getNodeManagerPort(rmhost, application) {
var httpUrl = window.location.protocol + "//"+
(ENV.hosts.localBaseAddress ? ENV.hosts.localBaseAddress + '/' : '') +
rmhost
+ ":" + window.location.port + "/conf?name=yarn.nodemanager.webapp.address";
var port = "8042";
$.ajax({
type: 'GET',
dataType: 'json',
async: false,
context: this,
url: httpUrl,
success: function(data) {
port = data.property.value.split(":")[1];
application.advanceReadiness();
},
error: function() {
port = "8042";
application.advanceReadiness();
}
});
return port;
}
{code}
# Change the following code
{code:java}
var nodeManagerPort = getNodeManagerPort();
{code}
to the following one.
{code:java}
var nodeManagerPort = getNodeManagerPort(rmhost, application);
{code}
> Add Terminal Link to Service component instance page for UI2
> ------------------------------------------------------------
>
> Key: YARN-9089
> URL: https://issues.apache.org/jira/browse/YARN-9089
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: yarn-ui-v2
> Affects Versions: 3.3.0
> Reporter: Eric Yang
> Assignee: Eric Yang
> Priority: Major
> Attachments: YARN-9089.001.patch, YARN-9089.002.patch,
> YARN-9089.003.patch
>
>
> In UI2, Service > Component > Component Instance uses Timeline server to
> aggregate information about Service component instance. Timeline server does
> not have the full information like the port number of the node manager, or
> the web protocol used by the node manager. It requires some changes to
> aggregate node manager information into Timeline server in order to compute
> the Terminal link. For reducing the scope of YARN-8914, it is better file
> this as a separate task.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]