CDH error Cloudera-scm-server dead but PID file exists

Source: Internet
Author: User
Tags postgresql
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.