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)



fatkun

折腾一下又不会死~

没有评论


You can leave the first : )



发表评论

电子邮件地址不会被公开。