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

发布于 2022-09-06 22:47:40 字数 5430 浏览 36 评论 0

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/。提示同样的错误。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

日久见人心 2022-09-13 22:47:40

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

解决方法:

yum -y install httpd

yum -y install mod_ssl

遗失的美好 2022-09-13 22:47:40

图片描述

看错误应该是mod_ssl没装吧

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文