CDH cm interface has an unreachable situation, view cloudera-scm-server status
# Service Cloudera-scm-server Status
Cloudera-scm-server dead but PID file exists
Hint Cloudera-scm-server dead
# Service Cloudera-scm-server Stop
# Service Cloudera-scm-server Status
Cloudera-scm-server is stopped
Delete Cloudera-scm-server.pid
# Rm/var/run/cloudera-scm-server.pid
Service Cloudera-scm-server-db Start
Does not start properly cloudera-scm-server-db
Waiting for server to start ... cloud not start server with .....
# Service CLOUDERA-SCM-SERVER-DB Status
Pg_ctl:no server running
Cloudera-scm-server-db is not running, if Postmaster.pid is present, it is deleted.
#cd/var/lib/cloudera-scm-server-db/data
# RM Postmaster.pid
View Db.log
Cat/var/log/cloudera-scm-server/db.log
Error: Could not write to log file:no space left on device
Cloud not create shared memory segment:invalid argument.
#cat/var/lib/cloudera-scm-server-db/data/postgresql.conf|grep Shared_buffers
shared_buffers=308493
#cat/etc/sysctl.conf|grep Kernel.shmmax
Kernel.shmmax = 68719476736
Kernel.shmmax = 4294967296
Comments
Vi/etc/sysctl.conf
Kernel.shmmax = 4294967296
Keep the large settings.
Restart
Service Cloudera-scm-server-db Start
Service CLOUDERA-SCM-SERVER-DB Status
PostgreSQL starts up normally.
# service Cloudera-scm-server-db Start
DB initialization done.
Waiting for server to start ... done
Server started
# service Cloudera-scm-server Start
Starting cloudera-scm-server: [OK]
Problem solved, CM can be normal access, the problem should be PostgreSQL use of shared memory more than the system setup Kernel.shmmax, need to be larger.