ambari-issues mailing list archives

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

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

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 pxf.py 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 params.py for PXF which invokes the below code path and currently running into
issue.
{code}
[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
{code}

> Ambari overwrites permissions on HDFS directories
> -------------------------------------------------
>
>                 Key: AMBARI-15228
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15228
>             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
(v6.3.4#6332)

Mime
View raw message