You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/06/28 05:13:00 UTC
[jira] [Updated] (AMBARI-24196) Mpack Instance Manager Produces Bad
JSON and Doesn't List Versions
[ https://issues.apache.org/jira/browse/AMBARI-24196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated AMBARI-24196:
------------------------------------
Labels: pull-request-available (was: )
> Mpack Instance Manager Produces Bad JSON and Doesn't List Versions
> ------------------------------------------------------------------
>
> Key: AMBARI-24196
> URL: https://issues.apache.org/jira/browse/AMBARI-24196
> Project: Ambari
> Issue Type: New Feature
> Components: ambari-server
> Affects Versions: 3.0.0
> Reporter: Scott Duan
> Assignee: Scott Duan
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.0.0
>
>
> The Mpack Instance manage is producing JSON output which cannot be parsed by non-Python parsers:
> - Includes unicode markers for strings (like \{{u'ZOOKEEPER'}})
> - Uses non-standard single quotes
> {code}
> [root@c7403 mpack-instance-manager]$ python mpack-instance-manager.py list-instances
> {'mpacks': \{'hdpcore': {'mpack-instances': {'HDPCORE': {'name': 'HDPCORE', 'subgroups': {'default': {'modules': {'zookeeper': {'category': u'SERVER', 'name': 'zookeeper', 'components': {'zookeeper_server': {'component-instances': {'default': {'path': '/usr/hwx/mpacks/hdpcore/1.0.0-b450/zookeeper_server', 'name': 'default'}}}}}, 'zookeeper_clients': \{'category': u'CLIENT', 'name': 'zookeeper_clients', 'components': {'zookeeper_client': {'component-instances': {'default': {'path': '/usr/hwx/mpacks/hdpcore/1.0.0-b450/zookeeper_client', 'name': 'default'}}}}}}}}}}}}}
> {code}
> It also fails to provide information about the mpack version and component version. The output from the command \{{list-instances}} needs to provide both the mpack version and the module component version. Otherwise, this data cannot be reported back.
> If the \{{list-instances}} is not the correct command for this, then that's fine, but we still need a command we can invoke to get this information back in a structure manner.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)