Reply
New Contributor
Posts: 1
Registered: ‎09-20-2016

Hue Load Balancing Error

Hello I am receiving this error when I try start role Load Balancer in Hue, anyone get some like this? How do I solve it?

 

Follow my stderr log

 

Can't open /run/cloudera-scm-agent/process/907-hue-HUE_LOAD_BALANCER/supervisor.conf: Permission denied, <> line 272.
+ [[ ! -d /run/cloudera-scm-agent/process/907-hue-HUE_LOAD_BALANCER/run ]]
+ CLOUDERA_HTTPD_CONF=/run/cloudera-scm-agent/process/907-hue-HUE_LOAD_BALANCER/httpd.conf
+ /usr/sbin/httpd -f /run/cloudera-scm-agent/process/907-hue-HUE_LOAD_BALANCER/httpd.conf -t
httpd: Could not open configuration file /run/cloudera-scm-agent/process/907-hue-HUE_LOAD_BALANCER/httpd.conf: Permission denied
+ '[' 1 '!=' 0 ']'
+ echo '/run/cloudera-scm-agent/process/907-hue-HUE_LOAD_BALANCER/httpd.conf is invalid'
/run/cloudera-scm-agent/process/907-hue-HUE_LOAD_BALANCER/httpd.conf is invalid
+ exit 1

 

  

 

 Thanks

 

Everton

Cloudera Employee
Posts: 3
Registered: ‎04-10-2017

Re: Hue Load Balancing Error

This looks to me as unix file permission issue on

/run/cloudera-scm-agent/process

 

New Contributor
Posts: 7
Registered: ‎06-24-2014

Re: Hue Load Balancing Error

I'd like to second this problem. I have a pristene Cloudera cluster installed on CentOS 7.3 (CDH 5.12)

Cloudera manager did seem to have other problems with permissions in /var/run on other services - but once that was sorted out everything else is running apart from the Load Balancer - I am getting the same error in the same place every time.

 

I have temporarily modified the httpd.sh script to run "whoami" and do an ls on the file it says permission denied

I have even looked at every file mentioned within that config file and can see no problems with that.

 

 

+ whoami
hue
+ ls -la /run/cloudera-scm-agent/process/297-hue-HUE_LOAD_BALANCER/httpd.conf
-rw-r-----. 1 hue hue 8255 Aug 17 11:41 /run/cloudera-scm-agent/process/297-hue-HUE_LOAD_BALANCER/httpd.conf
+ perl -pi -e 's#{{CLOUDERA_HTTPD_SSL_SCRIPT_DIR}}#/usr/lib64/cmf/service/common#g' /run/cloudera-scm-agent/process/297-hue-HUE_LOAD_BALANCER/hue.conf
+ /usr/sbin/httpd -f /run/cloudera-scm-agent/process/297-hue-HUE_LOAD_BALANCER/httpd.conf -t
httpd: Could not open configuration file /run/cloudera-scm-agent/process/297-hue-HUE_LOAD_BALANCER/httpd.conf: Permission denied
+ '[' 1 '!=' 0 ']'
+ echo '/run/cloudera-scm-agent/process/297-hue-HUE_LOAD_BALANCER/httpd.conf is invalid'
/run/cloudera-scm-agent/process/297-hue-HUE_LOAD_BALANCER/httpd.conf is invalid
+ exit 1

 

 

Any ideas?

New Contributor
Posts: 7
Registered: ‎06-24-2014

Re: Hue Load Balancing Error

And before anyone asks - here are the permissions on the process directory

[root@fleet02 httpd]# ls -la /run/cloudera-scm-agent/process
total 0
drwxr-x--x. 31 root root 620 Aug 17 11:41 .
drwxr-xr-x. 6 cloudera-scm cloudera-scm 160 Aug 16 13:58 ..
drwxr-x--x. 3 zookeeper zookeeper 320 Aug 16 14:50 257-zookeeper-server
drwxr-x--x. 3 hdfs hdfs 380 Aug 16 15:00 264-hdfs-SECONDARYNAMENODE
drwxr-x--x. 6 oozie oozie 320 Aug 16 15:04 270-oozie-OOZIE_SERVER
drwxr-x--x. 4 hive hive 340 Aug 16 15:07 272-hive-WEBHCAT
drwxr-x--x. 4 hive hive 340 Aug 16 15:07 273-hive-HIVEMETASTORE
drwxr-x--x. 4 hive hive 400 Aug 16 15:07 274-hive-HIVESERVER2
drwxr-x--x. 4 hue hue 280 Aug 16 15:31 275-hue-HUE_LOAD_BALANCER
drwxr-x--x. 9 hue hue 480 Aug 16 15:31 276-hue-HUE_SERVER
drwxr-x--x. 4 hue hue 280 Aug 16 15:34 282-hue-HUE_LOAD_BALANCER
drwxr-x--x. 9 hue hue 460 Aug 16 15:31 283-hue-HUE_SERVER
drwxr-x--x. 4 hue hue 280 Aug 16 15:50 284-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 16 15:51 285-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 16 15:54 286-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 16 15:55 287-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 16 15:57 288-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 16 15:59 289-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 16 16:43 290-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 17 11:19 291-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 17 11:29 292-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 17 11:31 293-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 280 Aug 17 11:37 294-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 300 Aug 17 11:38 295-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 300 Aug 17 11:41 296-hue-HUE_LOAD_BALANCER
drwxr-x--x. 4 hue hue 260 Aug 17 11:41 297-hue-HUE_LOAD_BALANCER
drwxr-xr-x. 4 root root 100 Aug 16 15:06 ccdeploy_hadoop-conf_etchadoopconf.cloudera.hdfs_3711304878547591218
drwxr-xr-x. 4 root root 100 Aug 16 15:06 ccdeploy_hbase-conf_etchbaseconf.cloudera.hbase_-5308202058122869851
drwxr-xr-x. 4 root root 100 Aug 16 15:06 ccdeploy_hive-conf_etchiveconf.cloudera.hive_1582453642590273763
drwxr-xr-x. 4 root root 100 Aug 16 15:06 ccdeploy_solr-conf_etcsolrconf.cloudera.solr_1630522684046020626
drwxr-xr-x. 8 root root 180 Aug 16 15:06 ccdeploy_spark-conf_etcsparkconf.cloudera.spark_on_yarn_379702062030725595
New Contributor
Posts: 7
Registered: ‎06-24-2014

Re: Hue Load Balancing Error

I still have this problem if I delete the load balancer on that machine and instead deploy it to any other machine.
New Contributor
Posts: 7
Registered: ‎06-24-2014

Re: Hue Load Balancing Error

BOTHER!

 

It seems like my problem was an SELinux problem. httpd could work in certain situations, but not others....

 

https://www.cloudera.com/documentation/enterprise/latest/topics/install_cdh_disable_selinux.html

 

is the official documentation I needed.

 

Cloudera Employee
Posts: 3
Registered: ‎04-10-2017

Re: Hue Load Balancing Error

Yep, SELINUX needs to be disabled for Cloudera Manager to work.

 

To disable SELINUX,  add following lines in /etc/selinux/config.

SELINUX=disabled
SELINUXTYPE=targeted

 

and restart your server. Once SELINUX is disabled you can compare to following output

ls -ldZ /var/run/cloudera-scm-agent/process/*-hue-HUE_LOAD_BALANCER

drwxr-x--x hue hue ? 11-hue-HUE_LOAD_BALANCER
drwxr-x--x hue hue ? 206-hue-HUE_LOAD_BALANCER
drwxr-x--x hue hue ? 301-hue-HUE_LOAD_BALANCER

Expert Contributor
Posts: 205
Registered: ‎07-01-2015

Re: Hue Load Balancing Error

Is there any solution for this? I have the same problem. And selinux is disabled.
Highlighted
Expert Contributor
Posts: 205
Registered: ‎07-01-2015

Re: Hue Load Balancing Error

The error was in my case very misleading, the Loadbalancer did not started, because it could not access the server's certificate and private key (Hue in TLS)

 

Announcements