ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-15387) Pxf service status is currently red
Date Fri, 11 Mar 2016 16:43:39 GMT

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

Andrew Onischuk commented on AMBARI-15387:
------------------------------------------

In status_command we do not add not_managed_hdfs_path_list to hostLevelParams. 
In many services we have separated status_params.py and params.py. During status check only
status_params.py is imported.
We can do the same for PXF.

The patch attached fixes the issue.
I am not sure how to test the pxf service that's why assigning this to you to fix and commit.

> Pxf service status is currently red
> -----------------------------------
>
>                 Key: AMBARI-15387
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15387
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.2.2
>            Reporter: Andrew Onischuk
>            Assignee: bhuvnesh chaudhary
>             Fix For: 2.2.2
>
>         Attachments: AMBARI-15387.patch
>
>
> {noformat}
> [root@c6401 ~]# /usr/bin/python /var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py
STATUS /var/lib/ambari-agent/data/status_command.json /var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package
/var/lib/ambari-agent/data/structured-out-status.json DEBUG /var/lib/ambari-agent/tmp
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py",
line 136, in <module>
>     Pxf().execute()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 219, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py",
line 67, in status
>     self.__execute_service_command("status")
>   File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py",
line 77, in __execute_service_command
>     import params
>   File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/params.py",
line 88, in <module>
>     immutable_paths = get_not_managed_resources())
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_not_managed_resources.py",
line 36, in get_not_managed_resources
>     not_managed_hdfs_path_list = json.loads(config['hostLevelParams']['not_managed_hdfs_path_list'])[:]
>   File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
>     return _default_decoder.decode(s)
>   File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> TypeError: expected string or buffer
> {noformat}



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

Mime
View raw message