CM5.14启动HUE Load Balancer角色失败。

http://localhost:8888能够访问,但是http://localhost:8889不能访问。
查看日志/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/logs/stderr.log

+ export HUE_HOME=/opt/cloudera/parcels/CDH-5.14.0-1.cdh5.14.0.p0.24/lib/hue
+ HUE_HOME=/opt/cloudera/parcels/CDH-5.14.0-1.cdh5.14.0.p0.24/lib/hue
+ export CLOUDERA_HTTPD_CONF_DIR=/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER
+ CLOUDERA_HTTPD_CONF_DIR=/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER
+ echo HUE_HOME=/opt/cloudera/parcels/CDH-5.14.0-1.cdh5.14.0.p0.24/lib/hue
+ echo CLOUDERA_HTTPD_EXECUTABLE_PATH=/usr/sbin/httpd
+ echo CLOUDERA_HTTPD_MODULE_DIR=/usr/lib64/httpd/modules
+ echo CLOUDERA_HTTPD_CONF_DIR=/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER
+ echo CLOUDERA_HTTPD_LOG_DIR=/var/log/hue-httpd
+ echo CLOUDERA_HTTPD_USE_SSL=
+ perl -pi -e 's#{{HUE_HOME}}#/opt/cloudera/parcels/CDH-5.14.0-1.cdh5.14.0.p0.24/lib/hue#g' /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/hue.conf /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/supervisor.conf
Can't open /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/supervisor.conf: 权限不够, <> line 274.
+ perl -pi -e 's#{{CLOUDERA_HTTPD_CONF_DIR}}#/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER#g' /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/hue.conf /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/supervisor.conf
Can't open /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/supervisor.conf: 权限不够, <> line 274.
+ perl -pi -e 's#{{CLOUDERA_HTTPD_LOG_DIR}}#/var/log/hue-httpd#g' /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/hue.conf /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/supervisor.conf
Can't open /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/supervisor.conf: 权限不够, <> line 274.
+ perl -pi -e 's#{{CLOUDERA_HTTPD_MODULE_DIR}}#/usr/lib64/httpd/modules#g' /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/hue.conf /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/supervisor.conf
Can't open /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/supervisor.conf: 权限不够, <> line 274.
+ replace_conf_dir
+ echo CONF_DIR=/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER
+ echo CMF_CONF_DIR=/opt/cm-5.14.1/etc/cloudera-scm-agent
+ EXCLUDE_CMF_FILES=('cloudera-config.sh' 'hue.sh' 'impala.sh' 'sqoop.sh' 'supervisor.conf' 'config.zip' 'proc.json' '*.log' '*.keytab' '*jceks')
++ printf '! -name %s ' cloudera-config.sh hue.sh impala.sh sqoop.sh supervisor.conf config.zip proc.json '*.log' '*.keytab' '*jceks'
+ find /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER -type f '!' -path '/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/logs/*' '!' -name cloudera-config.sh '!' -name hue.sh '!' -name impala.sh '!' -name sqoop.sh '!' -name supervisor.conf '!' -name config.zip '!' -name proc.json '!' -name '*.log' '!' -name '*.keytab' '!' -name '*jceks' -exec perl -pi -e 's#{{CMF_CONF_DIR}}#/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER#g' '{}' ';'
+ [[ ! -d /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/run ]]
+ CLOUDERA_HTTPD_CONF=/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf
+ CLOUDERA_HUE_CONF=/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/hue.conf
+ perl -pi -e 's#{{CLOUDERA_HTTPD_SSL_SCRIPT_DIR}}#/opt/cm-5.14.1/lib64/cmf/service/common#g' /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/hue.conf
+ /usr/sbin/httpd -f /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf -t
httpd: Syntax error on line 82 of /opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf: Cannot load /usr/lib64/httpd/modules/mod_ssl.so into server: /usr/lib64/httpd/modules/mod_ssl.so: cannot open shared object file: No such file or directory
+ '[' 1 '!=' 0 ']'
+ echo '/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf is invalid'
/opt/cm-5.14.1/run/cloudera-scm-agent/process/113-hue-HUE_LOAD_BALANCER/httpd.conf is invalid
+ exit 1

查看文件权限

clipboard.png
如果手动修改supervisor.conf权限:

chmod +020 supervisor.conf

CM界面重启Load Balancer,会生成新的目录/opt/cm-5.14.1/run/cloudera-scm-agent/process/114-hue-HUE_LOAD_BALANCER/。提示同样的错误。

阅读 4.7k
评论
    2 个回答

    原因:服务器环境没有预先安装httpd,mod_ssl服务

    解决方法:

    yum -y install httpd

    yum -y install mod_ssl

      • 2
      • 新人请关照

      图片描述

      看错误应该是mod_ssl没装吧

        撰写回答

        登录后参与交流、获取后续更新提醒

        相似问题
        推荐文章