ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bhuvnesh chaudhary (JIRA)" <>
Subject [jira] [Commented] (AMBARI-15228) Ambari overwrites permissions on HDFS directories
Date Fri, 11 Mar 2016 00:27:41 GMT


bhuvnesh chaudhary commented on AMBARI-15228:

Hello [~aonishuk], 
Pxf service status is currently red. 2 issues
1. For some reason ComponentIsNotRunning is not imported in which was the initial cause
of the status of pxf-service being red on ambari, [Fixed after importing the required module]
2. Now pxf status check fails due to the below, appears "immutable_paths = get_not_managed_resources()"
was added to for PXF which invokes the below code path and currently running into
[root@c6401 ~]# /usr/bin/python /var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/
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/", line
136, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/",
line 219, in execute
  File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/", line
67, in status
  File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/", line
77, in __execute_service_command
    import params
  File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/",
line 88, in <module>
    immutable_paths = get_not_managed_resources())
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/",
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/", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.6/json/", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: expected string or buffer

> Ambari overwrites permissions on HDFS directories
> -------------------------------------------------
>                 Key: AMBARI-15228
>                 URL:
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.2.2
>         Attachments: AMBARI-15228.patch
> Ambari is overriding permissions on default HDFS directories such as /app-
> logs, /apps/hive/warehouse, /tmp.  
> This is allowing any user to write in those locations preventing them from
> having control via Ranger/HDFS

This message was sent by Atlassian JIRA

View raw message