title: Can not start cloudera-scm-server-db because of "The CM is using external DB"
body: <p>I've updated jdk from 1.8_131 to 1.8_151 for CDH5. So i need to restart the cluster to make it take affect. In the begining i use cloudrea manager web page to restart, but it failed when zookeeper started which is the  first step. Then I made a bad choice which is close cloudrea manager in terminal including kill -9 postgresql process. After that, i could't open the  cloudrea manager web page. </p>
  
  <p>I use following instructions to start the cluster. </p>
  
  <pre><code>service cloudera-scm-server-db start
  service cloudera-scm-server start
  service cloudera-scm-agent start
  </code></pre>
  
  <p>All of them are failed, because <code>/var/log/cloudera-scm-server</code> and <code>/var/log/cloudera-scm-agent</code> disappear.</p>
  
  <p>So I creat these two files manually also include <code>dg.log</code> and <code>cloudera-scm-agent.log</code></p>
  
  <p>At this time, the <code>server</code> and <code>agent</code> could start. But <code>server-db</code> still can not. The next is some details.</p>
  
  <blockquote>
    <p>Starting cloudera-scm-server-db (via systemctl):  Job for
    cloudera-scm-server-db.service failed because the control process
    exited with error code. See "systemctl status
    cloudera-scm-server-db.service" and "journalctl -xe" for details</p>
  </blockquote>
  
  <p>journalctl -xe</p>
  
  <blockquote>
    <p>The CM is using external DB. Failed to start embedded DB service, giving up</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/lDkzy.png" rel="nofollow noreferrer">service --status-all</a></p>
  
  <p>What i've done:</p>
  
  <p>So, what should i do now? thank you thank you very much!!!</p>