<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: scm_prepare_database.sh script is not creating all necessary core tables in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412463#M253466</link>
    <description>&lt;P&gt;Hello, friendly reminder for you.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;scm_prepare_database.sh&lt;SPAN&gt;&amp;nbsp;script is used to create and configure a database for the Cloudera Manager Server. It can create the Cloudera Manager Server database configuration file, check the connection between the Cloudera Manager Server and the database, and then after a successful connection, generate and populate necessary tables in the&amp;nbsp;&lt;/SPAN&gt;/etc/cloudera-scm-server/db.properties&lt;SPAN&gt;&amp;nbsp;file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is why multiple database tables are not created until a successful connection takes place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This ensures the database is set up and ready for use by Cloudera Manager.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Sep 2025 03:28:10 GMT</pubDate>
    <dc:creator>jleandro-cr</dc:creator>
    <dc:date>2025-09-25T03:28:10Z</dc:date>
    <item>
      <title>scm_prepare_database.sh script is not creating all necessary core tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412014#M253190</link>
      <description>&lt;P&gt;I have created a mysql database (scm) &amp;amp; user (&lt;A href="mailto:scm@localhost" target="_blank" rel="noopener"&gt;scm@localhost&lt;/A&gt;) on a RHEL7 server. CM server version is&amp;nbsp;cloudera-manager-server-7.6.7-36957245.el7.x86_64; mysql version is&amp;nbsp;mysql Ver 8.0.42 for Linux on x86_64 (MySQL Community Server - GPL).&amp;nbsp;&lt;/P&gt;&lt;P&gt;DB user has following grants...mysql&amp;gt; grant select, insert, update, delete, create, drop on scm.* to 'scm'@'localhost';&lt;/P&gt;&lt;P&gt;When the scm_prepare_database.sh script is executed, it returns "All done, your SCM database is configured correctly!"&amp;nbsp; HOWEVER, multiple database tables are NOT created &amp;amp; the cloudera-scm-server.service will NOT stay started.&lt;/P&gt;&lt;P&gt;cloudera-scm-server.log returns multiple errors like&lt;/P&gt;&lt;P&gt;Caused by: java.sql.SQLSyntaxErrorException: Table 'scm.CM_VERSION' doesn't exist&lt;/P&gt;&lt;P&gt;Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet&lt;/P&gt;&lt;P&gt;Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet&lt;/P&gt;&lt;P&gt;Caused by: java.lang.RuntimeException: Unable to obtain CM release version.&lt;/P&gt;&lt;P&gt;Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: Unable to obtain CM release version.&lt;/P&gt;&lt;P&gt;2025-07-31 23:49:30,224 ERROR main:com.cloudera.server.cmf.Main: Server failed.&lt;BR /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cloudera.server.cmf.TrialState': Cannot resolve reference to bean 'entityManagerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested excption is java.lang.RuntimeException: Unable to obtain CM release version.&lt;/P&gt;&lt;P&gt;Cloudera Support is unable to help so .&lt;/P&gt;&lt;P&gt;Any ideas how to resolve java bean errors or at minimum have DDL of necessary tables to build for core mysql db build?&lt;/P&gt;&lt;P&gt;Appreciate any ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 13:11:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412014#M253190</guid>
      <dc:creator>Joyful</dc:creator>
      <dc:date>2025-08-01T13:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: scm_prepare_database.sh script is not creating all necessary core tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412017#M253193</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89756"&gt;@Joyful&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reaching out to the Cloudera Community&lt;/P&gt;&lt;P&gt;I hope the below has been completed fine&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/installation/topics/cm_ig_mysql.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.9/installation/topics/cm_ig_mysql.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If possible, can you check whether the entries in /etc/cloudera-scm-server/db.properties are correct? This would be modified by the script only. Also could you please share the syntax that you are using while running the script&lt;/P&gt;&lt;P&gt;Double-check the character set as well in the Database&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="cdoc-line"&gt;CREATE DATABASE &amp;lt;database&amp;gt; DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If you find anything wrong,&amp;nbsp; drop the database, re-create it with the privileges, and run the script again&lt;/P&gt;&lt;P&gt;Awaiting your response&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2025 00:56:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412017#M253193</guid>
      <dc:creator>upadhyayk04</dc:creator>
      <dc:date>2025-08-02T00:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: scm_prepare_database.sh script is not creating all necessary core tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412463#M253466</link>
      <description>&lt;P&gt;Hello, friendly reminder for you.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;scm_prepare_database.sh&lt;SPAN&gt;&amp;nbsp;script is used to create and configure a database for the Cloudera Manager Server. It can create the Cloudera Manager Server database configuration file, check the connection between the Cloudera Manager Server and the database, and then after a successful connection, generate and populate necessary tables in the&amp;nbsp;&lt;/SPAN&gt;/etc/cloudera-scm-server/db.properties&lt;SPAN&gt;&amp;nbsp;file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is why multiple database tables are not created until a successful connection takes place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This ensures the database is set up and ready for use by Cloudera Manager.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 03:28:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412463#M253466</guid>
      <dc:creator>jleandro-cr</dc:creator>
      <dc:date>2025-09-25T03:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: scm_prepare_database.sh script is not creating all necessary core tables</title>
      <link>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412600#M253561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/89756"&gt;@Joyful&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you been able to resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cjervis_0-1759757991342.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46371iE73F0AA04C95A4F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cjervis_0-1759757991342.png" alt="cjervis_0-1759757991342.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 13:40:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/scm-prepare-database-sh-script-is-not-creating-all-necessary/m-p/412600#M253561</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2025-10-06T13:40:07Z</dc:date>
    </item>
  </channel>
</rss>

