You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Yesha Vora (JIRA)" <ji...@apache.org> on 2018/01/18 01:42:00 UTC
[jira] [Created] (YARN-7768) yarn application -status appName does
not return valid json
Yesha Vora created YARN-7768:
--------------------------------
Summary: yarn application -status appName does not return valid json
Key: YARN-7768
URL: https://issues.apache.org/jira/browse/YARN-7768
Project: Hadoop YARN
Issue Type: Bug
Components: yarn-native-services
Reporter: Yesha Vora
yarn application -status <appName> does not return valid json
1) It has classname added to json content such as class Service, class KerberosPrincipal , class Component etc
2) The json object should be comma separated.
{code}
[hrt_qa@xxxx2 hadoopqe]$ yarn application -status httpd-hrt-qa
WARNING: YARN_LOG_DIR has been replaced by HADOOP_LOG_DIR. Using value of YARN_LOG_DIR.
WARNING: YARN_LOGFILE has been replaced by HADOOP_LOGFILE. Using value of YARN_LOGFILE.
WARNING: YARN_PID_DIR has been replaced by HADOOP_PID_DIR. Using value of YARN_PID_DIR.
WARNING: YARN_OPTS has been replaced by HADOOP_OPTS. Using value of YARN_OPTS.
18/01/18 00:33:07 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
18/01/18 00:33:08 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded.
18/01/18 00:33:08 INFO utils.ServiceApiUtil: Loading service definition from hdfs://mycluster/user/hrt_qa/.yarn/services/httpd-hrt-qa/httpd-hrt-qa.json
18/01/18 00:33:09 INFO client.ConfiguredRMFailoverProxyProvider: Failing over to rm2
class Service {
name: httpd-hrt-qa
id: application_1516234304810_0001
artifact: null
resource: null
launchTime: null
numberOfRunningContainers: null
lifetime: 3600
placementPolicy: null
components: [class Component {
name: httpd
state: STABLE
dependencies: []
readinessCheck: null
artifact: class Artifact {
id: centos/httpd-24-centos7:latest
type: DOCKER
uri: null
}
launchCommand: /usr/bin/run-httpd
resource: class Resource {
profile: null
cpus: 1
memory: 1024
additional: null
}
numberOfContainers: 2
containers: [class Container {
id: container_e05_1516234304810_0001_01_000002
launchTime: Thu Jan 18 00:19:22 UTC 2018
ip: 172.17.0.2
hostname: httpd-0.httpd-hrt-qa.hrt_qa.test.com
bareHost: xxxx5.hwx.site
state: READY
componentInstanceName: httpd-0
resource: null
artifact: null
privilegedContainer: null
}, class Container {
id: container_e05_1516234304810_0001_01_000003
launchTime: Thu Jan 18 00:19:23 UTC 2018
ip: 172.17.0.3
hostname: httpd-1.httpd-hrt-qa.hrt_qa.test.com
bareHost: xxxx5.hwx.site
state: READY
componentInstanceName: httpd-1
resource: null
artifact: null
privilegedContainer: null
}]
runPrivilegedContainer: false
placementPolicy: null
configuration: class Configuration {
properties: {}
env: {}
files: [class ConfigFile {
type: TEMPLATE
destFile: /var/www/html/index.html
srcFile: null
properties: {content=<html><header><title>Title</title></header><body>Hello from ${COMPONENT_INSTANCE_NAME}!</body></html>}
}]
}
quicklinks: []
}, class Component {
name: httpd-proxy
state: FLEXING
dependencies: []
readinessCheck: null
artifact: class Artifact {
id: centos/httpd-24-centos7:latest
type: DOCKER
uri: null
}
launchCommand: /usr/bin/run-httpd
resource: class Resource {
profile: null
cpus: 1
memory: 1024
additional: null
}
numberOfContainers: 1
containers: []
runPrivilegedContainer: false
placementPolicy: null
configuration: class Configuration {
properties: {}
env: {}
files: [class ConfigFile {
type: TEMPLATE
destFile: /etc/httpd/conf.d/httpd-proxy.conf
srcFile: httpd-proxy.conf
properties: {}
}]
}
quicklinks: []
}]
configuration: class Configuration {
properties: {}
env: {}
files: []
}
state: STARTED
quicklinks: {Apache HTTP Server=http://httpd-proxy-0.httpd-hrt-qa.hrt_qa.test.com:8080}
queue: null
kerberosPrincipal: class KerberosPrincipal {
principalName: null
keytab: null
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org