Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

cloudera-scm-server is dead and pid file exists

avatar
Explorer

i am new to CDH ,due to power failure our Hadoop Cluster went down when we start our machine and try to restart cloudera-scm-server for second it shows that the service is started after a second it when we check its status it shows cloudera-scm-server is dead and pid file exists for that i checked /var/log/cloudera-scm-server .out file it gives following error

JAVA_HOME=/usr/lib/jvm/java-7-oracle-cloudera
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /var/log/cloudera-scm-server/cloudera-scm-server.log (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
        at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
        at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
        at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547)
        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
        at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
        at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
        at com.cloudera.server.cmf.Main.<clinit>(Main.java:158)

I have installed CDH using root as user

2 ACCEPTED SOLUTIONS

avatar
Super Collaborator

https://community.cloudera.com/t5/Cloudera-Manager-Installation/cloudera-scm-server-is-dead-and-pid-... is the same problem.    It says:

 

Since there is a .pid file, remove it first.  Check the following and delete if it exists:

 

        /var/run/cloudera-scm-server.pid

 

Try this.

View solution in original post

avatar
Explorer

problem sloved

stop all service - sudo service cloudera-scm-agent hard_stop_confimed

delete file /var/run/cloudera-scm-server.pid

allow read permission to /var/log/cloudera-scm-server/cloudera-scm-server.log & /var/log/cloudera-scm-server/db.log 

 

start all service

sudo service cloudera-scm-server-db start

sudo service cloudera-scm-server start

sudo service cloudera-scm-agent hard_restart_confimed

View solution in original post

3 REPLIES 3

avatar
Super Collaborator

https://community.cloudera.com/t5/Cloudera-Manager-Installation/cloudera-scm-server-is-dead-and-pid-... is the same problem.    It says:

 

Since there is a .pid file, remove it first.  Check the following and delete if it exists:

 

        /var/run/cloudera-scm-server.pid

 

Try this.

avatar
Explorer

thanks for reply

 

i have deleted pid file from the same location  as you mentioned but after starting the cloudera server it status shows cloudera server running for a second and goes down again still unable to fix the problem

Screenshot from 2016-11-08 10_00_39.png

 

also i tried to start cloudera-scm-server-db service it shows permission denied .is their any problem of user ? because i have installed CDH as root and running command from user namenode

 

avatar
Explorer

problem sloved

stop all service - sudo service cloudera-scm-agent hard_stop_confimed

delete file /var/run/cloudera-scm-server.pid

allow read permission to /var/log/cloudera-scm-server/cloudera-scm-server.log & /var/log/cloudera-scm-server/db.log 

 

start all service

sudo service cloudera-scm-server-db start

sudo service cloudera-scm-server start

sudo service cloudera-scm-agent hard_restart_confimed