cloudera manager在下载日志返回502 BAD_GATEWAY错误

下载日志是通过status_server.py的download_log方法进行的 /usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.13.1-py2.6.egg/cmf/status_server.py 如果日志目录包含以下开头就禁止下载

# Simple blacklist of path prefixes that are not reasonable for log locations
    path_blacklist = [ "/boot/", "/etc/", "/usr/", "/lib/", "/lib64/", "/home/",
                       "/root/", "/sys/", "/proc/", "/dev/", "/bin/", "/sbin/" ]

    fd = self._validate_and_open(new_log_file_path,
                                 restrict_to_parent_path=False,
                                 path_blacklist=path_blacklist)
updatedupdated2024-11-302024-11-30