ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-17306) Filter out MOTD logging from 'llapstatus' command in order to get the output which is JSON parsable.
Date Tue, 21 Jun 2016 04:19:57 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-17306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341037#comment-15341037
] 

Hudson commented on AMBARI-17306:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #5119 (See [https://builds.apache.org/job/Ambari-trunk-Commit/5119/])
AMBARI-17306. Filter out MOTD logging from 'llapstatus' command in order (sshridhar: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4ea41235353cbece75d9cbd6613ef6645d6bca3f])
* ambari-server/src/test/python/stacks/2.5/HIVE/invalidApp_withMOTDmsg.txt
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
* ambari-server/src/test/python/stacks/2.5/HIVE/running_withMOTDmsg.txt
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_llap_app_status.py
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server_interactive.py
* ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py
* ambari-server/pom.xml
* ambari-server/src/test/python/stacks/2.5/HIVE/oneContainerDown_withMOTDmsg.txt
* ambari-server/src/test/python/stacks/2.5/HIVE/appComplete_withMOTDmsg.txt
* ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-interactive-site.xml
* ambari-server/src/test/python/stacks/2.5/HIVE/starting_withMOTDmsg.txt


> Filter out MOTD logging from 'llapstatus' command in order to get the output which is
JSON parsable.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-17306
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17306
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Swapan Shridhar
>            Assignee: Swapan Shridhar
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17306.patch
>
>
> Example of expected response which can be JSON parsed:
> *CASE A:*
> {code}
> {
>   "amInfo" : {
>     "appName" : "llap0",
>     "appType" : "org-apache-slider",
>     "appId" : "application_1466036628595_0010",
>     "containerId" : "container_1466036628595_0010_01_000001",
>     "hostname" : "hostname",
>     "amWebUrl" : "http://hostname:60865/"
>   },
>   "state" : "LAUNCHING",
>   "originalConfigurationPath" : "hdfs://hostname:8020/user/hive/.slider/cluster/llap0/snapshot",
>   "generatedConfigurationPath" : "hdfs://hostname:8020/user/hive/.slider/cluster/llap0/generated",
>   "desiredInstances" : 1,
>   "liveInstances" : 0,
>   "appStartTime" : 1466123287309
> }
> {code}
> The same output with MOTD message:
> {code}
> This is MOTD message
> This is MOTD message1
> {
>   "amInfo" : {
>     "appName" : "llap0",
>     "appType" : "org-apache-slider",
>     "appId" : "application_1466036628595_0010",
>     "containerId" : "container_1466036628595_0010_01_000001",
>     "hostname" : "hostname",
>     "amWebUrl" : "http://hostname:60865/"
>   },
>   "state" : "LAUNCHING",
>   "originalConfigurationPath" : "hdfs://hostname:8020/user/hive/.slider/cluster/llap0/snapshot",
>   "generatedConfigurationPath" : "hdfs://hostname:8020/user/hive/.slider/cluster/llap0/generated",
>   "desiredInstances" : 1,
>   "liveInstances" : 0,
>   "appStartTime" : 1466123287309
> }
> {code}
> Other scenario can be (eg: APP_NOTFOUND):
> *CASE B:*
> {code}
> This is MOTD message
> This is MOTD message1
> {
>   "state" : "APP_NOT_FOUND"
> }
> {code}
> - We need to filter out extra lines initially added on top of JSON parseable string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message