Hue Load Balancer Permission denied error | Arkit
I am using Cloudera distribution Hadoop, recently commissioned a new host into the Hadoop cluster. Trying to bring the Hue Load Balancer service however I keep getting an error message saying permission denied. Hue Load Balancer Permission denied error
If I set full permission to /run/cloudera-scm-agent/process/ directory still I am getting the same error again and again, below is the error message
Hue Load Balancer Permission denied error
Can't open /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/supervisor.conf: Permission denied, <> line 274. + replace_conf_dir + echo CONF_DIR=/run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER + echo CMF_CONF_DIR=/etc/cloudera-scm-agent + EXCLUDE_CMF_FILES=('cloudera-config.sh' 'httpfs.sh' 'hue.sh' 'impala.sh' 'sqoop.sh' 'supervisor.conf' '*.log' '*.keytab' '*jceks') ++ printf '! -name %s ' cloudera-config.sh httpfs.sh hue.sh impala.sh sqoop.sh supervisor.conf '*.log' '*.keytab' '*jceks' + find /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER -type f '!' -path '/run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/logs/*' '!' -name cloudera-config.sh '!' -name httpfs.sh '!' -name hue.sh '!' -name impala.sh '!' -name sqoop.sh '!' -name supervisor.conf '!' -name '*.log' '!' -name '*.keytab' '!' -name '*jceks' -exec perl -pi -e 's#{{CMF_CONF_DIR}}#/run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER#g' '{}' ';' Can't open /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/config.zip: Permission denied. Can't open /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/proc.json: Permission denied. + [[ ! -d /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/run ]] + mkdir -p /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/run + CLOUDERA_HTTPD_CONF=/run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/httpd.conf + CLOUDERA_HUE_CONF=/run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/hue.conf + perl -pi -e 's#{{CLOUDERA_HTTPD_SSL_SCRIPT_DIR}}#/usr/lib64/cmf/service/common#g' /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/hue.conf + /usr/sbin/httpd -f /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/httpd.conf -t Syntax OK + '[' 0 '!=' 0 ']' + '[' '' = refresh ']' + ARGS= + '[' -n '' ']' + exec /usr/sbin/httpd -f /run/cloudera-scm-agent/process/6132-hue-HUE_LOAD_BALANCER/httpd.conf -DFOREGROUND
After analyzing a few attempts I understand that SELinux is the culprit, to resolve the issue set SELinux into permissive mode using the below command
# setenforce 0
Disable the SELinux for a permanent solution and reboot the server
That’s resolved the issue. Happy troubleshooting.
Related Articles
Neo4j Graph Database installation
Thanks for your wonderful Support and Encouragement