Created on 07-17-2019 07:55 PM - edited 09-16-2022 07:31 AM
After doing so, all services started except Hbase.
Found this in error logs
Can't open /var/run/cloudera-scm-agent/process/758-hbase-REGIONSERVER/supervisor_status: Permission denied.
How to solve this problem?
Created 07-17-2019 10:22 PM
The "supervisor_status" file is not used by hbase, so this message should be non-fatal. I'd check to see if the stderr.log file for the region server process and see if there were any other messages after that Permission Denied. My guess is that the region server log file may contain errors regarding znodes. If Hbase created an Zookeeper znodes while Kerberos was enabled, then the znodes will require auth and will need to be recreated.
I think the solution I mentioned here should help:
Created 07-17-2019 10:22 PM
The "supervisor_status" file is not used by hbase, so this message should be non-fatal. I'd check to see if the stderr.log file for the region server process and see if there were any other messages after that Permission Denied. My guess is that the region server log file may contain errors regarding znodes. If Hbase created an Zookeeper znodes while Kerberos was enabled, then the znodes will require auth and will need to be recreated.
I think the solution I mentioned here should help:
Created 07-17-2019 10:23 PM
@Debashish, let's make sure that we can confirm the cause of your problem first, though, before pursuing the znode stuff.
Created on 07-17-2019 10:36 PM - edited 07-17-2019 10:37 PM
region server error log:
Can't open /var/run/cloudera-scm-agent/process/758-hbase-REGIONSERVER/supervisor_status: Permission denied. + make_scripts_executable + find /var/run/cloudera-scm-agent/process/758-hbase-REGIONSERVER -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ';' + acquire_kerberos_tgt hbase.keytab + '[' -z hbase.keytab ']' + KERBEROS_PRINCIPAL= + '[' '!' -z '' ']' + '[' -n '' ']' + export 'HBASE_OPTS=-Djava.net.preferIPv4Stack=true ' + HBASE_OPTS='-Djava.net.preferIPv4Stack=true ' + locate_hbase_script + '[' 6 -ge 5 ']' + export BIGTOP_DEFAULTS_DIR= + BIGTOP_DEFAULTS_DIR= + HBASE_BIN=/opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/hbase/../../bin/hbase + '[' upgrade = regionserver ']' + '[' region_mover = regionserver ']' + '[' toggle_balancer = regionserver ']' + '[' shell = regionserver ']' + '[' remoteSnapshotTool = regionserver ']' + '[' '' '!=' '' ']' + '[' regionserver = regionserver -a -n '' ']' + '[' start = start -a 6 -gt 4 ']' + '[' regionserver = regionserver -o master = regionserver ']' + export HBASE_ZNODE_FILE=/var/run/cloudera-scm-agent/process/758-hbase-REGIONSERVER/znode55330 + HBASE_ZNODE_FILE=/var/run/cloudera-scm-agent/process/758-hbase-REGIONSERVER/znode55330 + exec /opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/hbase/../../bin/hbase --config /var/run/cloudera-scm-agent/process/758-hbase-REGIONSERVER regionserver start + znode_cleanup regionserver ++ date + echo 'Wed Jul 17 15:27:01 CAT 2019 Starting znode cleanup thread with HBASE_ZNODE_FILE=/var/run/cloudera-scm-agent/process/758-hbase-REGIONSERVER/znode55330 for regionserver' ++ replace_pid -Djava.net.preferIPv4Stack=true ++ echo -Djava.net.preferIPv4Stack=true ++ sed 's#{{PID}}#55330#g' + HBASE_OPTS=-Djava.net.preferIPv4Stack=true + '[' '' '!=' '' ']' + LOG_FILE=/var/run/cloudera-scm-agent/process/758-hbase-REGIONSERVER/logs/znode_cleanup.log + set +x
Created 07-17-2019 10:48 PM
@bgooley thanks for the prompt response.
Region server error log:
Can't open /var/run/cloudera-scm-agent/process/762-hbase-REGIONSERVER/supervisor_status: Permission denied. + make_scripts_executable + find /var/run/cloudera-scm-agent/process/762-hbase-REGIONSERVER -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ';' + acquire_kerberos_tgt hbase.keytab + '[' -z hbase.keytab ']' + KERBEROS_PRINCIPAL= + '[' '!' -z '' ']' + '[' -n '' ']' + export 'HBASE_OPTS=-Djava.net.preferIPv4Stack=true ' + HBASE_OPTS='-Djava.net.preferIPv4Stack=true ' + locate_hbase_script + '[' 6 -ge 5 ']' + export BIGTOP_DEFAULTS_DIR= + BIGTOP_DEFAULTS_DIR= + HBASE_BIN=/opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/hbase/../../bin/hbase + '[' upgrade = regionserver ']' + '[' region_mover = regionserver ']' + '[' toggle_balancer = regionserver ']' + '[' shell = regionserver ']' + '[' remoteSnapshotTool = regionserver ']' + '[' '' '!=' '' ']' + '[' regionserver = regionserver -a -n '' ']' + '[' start = start -a 6 -gt 4 ']' + '[' regionserver = regionserver -o master = regionserver ']' + export HBASE_ZNODE_FILE=/var/run/cloudera-scm-agent/process/762-hbase-REGIONSERVER/znode31619 + HBASE_ZNODE_FILE=/var/run/cloudera-scm-agent/process/762-hbase-REGIONSERVER/znode31619 + exec /opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/hbase/../../bin/hbase --config /var/run/cloudera-scm-agent/process/762-hbase-REGIONSERVER regionserver start + znode_cleanup regionserver ++ date + echo 'Wed Jul 17 15:26:58 CAT 2019 Starting znode cleanup thread with HBASE_ZNODE_FILE=/var/run/cloudera-scm-agent/process/762-hbase-REGIONSERVER/znode31619 for regionserver' ++ replace_pid -Djava.net.preferIPv4Stack=true ++ echo -Djava.net.preferIPv4Stack=true ++ sed 's#{{PID}}#31619#g' + HBASE_OPTS=-Djava.net.preferIPv4Stack=true + '[' '' '!=' '' ']' + LOG_FILE=/var/run/cloudera-scm-agent/process/762-hbase-REGIONSERVER/logs/znode_cleanup.log + set +x
Created 07-18-2019 06:31 PM
@Debashish, yup, stderr.log looks good. Please check your Region Server log file on that host (usually it is in /var/log/hbase with the name REGIONSERVER in it). I am guessing you will see an attempt to start up and then a failure of sorts.