<?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: Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/93134#M33796</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/27"&gt;@michalis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have downgraded Mysql version from 10.2 to 10.0.&lt;/P&gt;&lt;P&gt;Now it is working fine:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your support:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnka,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2019 12:29:14 GMT</pubDate>
    <dc:creator>viha</dc:creator>
    <dc:date>2019-07-24T12:29:14Z</dc:date>
    <item>
      <title>Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92787#M33791</link>
      <description>&lt;P&gt;I use this command to start:&lt;/P&gt;&lt;P&gt;sudo systemctl start cloudera-scm-server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I 'm using&amp;nbsp;CDH-6.2.0-1.cdh6.2.0. and I use mysql as metastore.&lt;/P&gt;&lt;P&gt;Then it tells me as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;2019-07-16 15:06:38,947 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 exception is java.lang.RuntimeException: Unable to obtain CM release version.&lt;BR /&gt;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)&lt;BR /&gt;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)&lt;BR /&gt;at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:634)&lt;BR /&gt;at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1198)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1100)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)&lt;BR /&gt;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)&lt;BR /&gt;at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)&lt;BR /&gt;at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)&lt;BR /&gt;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)&lt;BR /&gt;at com.cloudera.server.cmf.Main.bootstrapSpringContext(Main.java:418)&lt;BR /&gt;at com.cloudera.server.cmf.Main.&amp;lt;init&amp;gt;(Main.java:260)&lt;BR /&gt;at com.cloudera.server.cmf.Main.main(Main.java:233)&lt;BR /&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;BR /&gt;at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:185)&lt;BR /&gt;at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1640)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)&lt;BR /&gt;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)&lt;BR /&gt;at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)&lt;BR /&gt;... 17 more&lt;BR /&gt;Caused by: java.lang.RuntimeException: Unable to obtain CM release version.&lt;BR /&gt;at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getPersistedCmRelease(EntityManagerFactoryBean.java:311)&lt;BR /&gt;at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.checkVersionDoFail(EntityManagerFactoryBean.java:358)&lt;BR /&gt;at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:172)&lt;BR /&gt;at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:75)&lt;BR /&gt;at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178)&lt;BR /&gt;... 22 more&lt;BR /&gt;Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet&lt;BR /&gt;at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147)&lt;BR /&gt;at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:155)&lt;BR /&gt;at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1407)&lt;BR /&gt;at org.hibernate.query.internal.AbstractProducedQuery.getSingleResult(AbstractProducedQuery.java:1444)&lt;BR /&gt;at com.cloudera.cmf.persist.DbVersionDao.getVersion(DbVersionDao.java:53)&lt;BR /&gt;at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getPersistedCmRelease(EntityManagerFactoryBean.java:307)&lt;BR /&gt;... 26 more&lt;BR /&gt;Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet&lt;BR /&gt;at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63)&lt;BR /&gt;at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)&lt;BR /&gt;at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)&lt;BR /&gt;at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97)&lt;BR /&gt;at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:79)&lt;BR /&gt;at org.hibernate.loader.Loader.getResultSet(Loader.java:2123)&lt;BR /&gt;at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1911)&lt;BR /&gt;at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1887)&lt;BR /&gt;at org.hibernate.loader.Loader.doQuery(Loader.java:932)&lt;BR /&gt;at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:349)&lt;BR /&gt;at org.hibernate.loader.Loader.doList(Loader.java:2615)&lt;BR /&gt;at org.hibernate.loader.Loader.doList(Loader.java:2598)&lt;BR /&gt;at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2430)&lt;BR /&gt;at org.hibernate.loader.Loader.list(Loader.java:2425)&lt;BR /&gt;at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:335)&lt;BR /&gt;at org.hibernate.internal.SessionImpl.listCustomQuery(SessionImpl.java:2128)&lt;BR /&gt;at org.hibernate.internal.AbstractSharedSessionContract.list(AbstractSharedSessionContract.java:991)&lt;BR /&gt;at org.hibernate.query.internal.NativeQueryImpl.doList(NativeQueryImpl.java:147)&lt;BR /&gt;at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1398)&lt;BR /&gt;... 29 more&lt;BR /&gt;Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'metastore.CM_VERSION' doesn't exist&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;BR /&gt;at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)&lt;BR /&gt;at com.mysql.jdbc.Util.getInstance(Util.java:408)&lt;BR /&gt;at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)&lt;BR /&gt;at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)&lt;BR /&gt;at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)&lt;BR /&gt;at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)&lt;BR /&gt;at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)&lt;BR /&gt;at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2484)&lt;BR /&gt;at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)&lt;BR /&gt;at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1966)&lt;BR /&gt;at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:116)&lt;BR /&gt;at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:70)&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mysql database is as below:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;+---------------------------+&lt;BR /&gt;| Tables_in_metastore |&lt;BR /&gt;+---------------------------+&lt;BR /&gt;| AUDITS |&lt;BR /&gt;| BUCKETING_COLS |&lt;BR /&gt;| CDH_VERSION |&lt;BR /&gt;| CDS |&lt;BR /&gt;| COLUMNS_V2 |&lt;BR /&gt;| COMMANDS |&lt;BR /&gt;| CONFIGS |&lt;BR /&gt;| CREDENTIALS |&lt;BR /&gt;| DATABASE_PARAMS |&lt;BR /&gt;| DBS |&lt;BR /&gt;| DB_PRIVS |&lt;BR /&gt;| DELEGATION_TOKENS |&lt;BR /&gt;| FUNCS |&lt;BR /&gt;| FUNC_RU |&lt;BR /&gt;| GLOBAL_PRIVS |&lt;BR /&gt;| HOSTS |&lt;BR /&gt;| IDXS |&lt;BR /&gt;| INDEX_PARAMS |&lt;BR /&gt;| KEY_CONSTRAINTS |&lt;BR /&gt;| MASTER_KEYS |&lt;BR /&gt;| NOTIFICATION_LOG |&lt;BR /&gt;| NOTIFICATION_SEQUENCE |&lt;BR /&gt;| NUCLEUS_TABLES |&lt;BR /&gt;| PARTITIONS |&lt;BR /&gt;| PARTITION_EVENTS |&lt;BR /&gt;| PARTITION_KEYS |&lt;BR /&gt;| PARTITION_KEY_VALS |&lt;BR /&gt;| PARTITION_PARAMS |&lt;BR /&gt;| PART_COL_PRIVS |&lt;BR /&gt;| PART_COL_STATS |&lt;BR /&gt;| PART_PRIVS |&lt;BR /&gt;| PROCESSES |&lt;BR /&gt;| ROLES |&lt;BR /&gt;| ROLE_MAP |&lt;BR /&gt;| SCHEMA_VERSION |&lt;BR /&gt;| SDS |&lt;BR /&gt;| SD_PARAMS |&lt;BR /&gt;| SEQUENCE_TABLE |&lt;BR /&gt;| SERDES |&lt;BR /&gt;| SERDE_PARAMS |&lt;BR /&gt;| SKEWED_COL_NAMES |&lt;BR /&gt;| SKEWED_COL_VALUE_LOC_MAP |&lt;BR /&gt;| SKEWED_STRING_LIST |&lt;BR /&gt;| SKEWED_STRING_LIST_VALUES |&lt;BR /&gt;| SKEWED_VALUES |&lt;BR /&gt;| SORT_COLS |&lt;BR /&gt;| TABLE_PARAMS |&lt;BR /&gt;| TAB_COL_STATS |&lt;BR /&gt;| TBLS |&lt;BR /&gt;| TBL_COL_PRIVS |&lt;BR /&gt;| TBL_PRIVS |&lt;BR /&gt;| TYPES |&lt;BR /&gt;| TYPE_FIELDS |&lt;BR /&gt;| VERSION |&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 07:30:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92787#M33791</guid>
      <dc:creator>dennisli</dc:creator>
      <dc:date>2019-07-16T07:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92797#M33792</link>
      <description>&lt;P&gt;Hi Dennisli,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also facing the same issue today and working to fix it. Please share with me if you get any solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai Vijaya&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 13:52:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92797#M33792</guid>
      <dc:creator>viha</dc:creator>
      <dc:date>2019-07-16T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92801#M33793</link>
      <description>&lt;P&gt;Here's what I understand from the error;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1. I 'm using&amp;nbsp;CDH-6.2.0-1.cdh6.2.0. and I use mysql as metastore.&lt;/PRE&gt;&lt;PRE&gt;2. Then it tells me as below:

2019-07-16 15:06:38,947 ERROR main:com.cloudera.server.cmf.Main: Server failed.

...

at com.cloudera.server.cmf.Main.main(Main.java:233)
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.

...

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'metastore.CM_VERSION' doesn't exist

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cloudera Manager uses database [0], and the database name information is under /etc/cloudera-scm-server/db.properties, normally the database name should be different and not "metastore"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hive "metastore" also uses database [1], and the database configuration settings is stored in Cloudera Manger web UI, these configuration is saved in Cloudera Manager Database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now some&amp;nbsp;&lt;SPAN&gt;discrepancies&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;'metastore.CM_VERSION' (note metastore) and the "Tables_in_metastore" (&lt;/SPAN&gt;Mysql database is as below:) which you have provided, is listing the "Hive Metastore Database" tables, intermixed with "Cloudera Manager Database" tables. This is not ideal - as it is difficult to narrow down the issue when they happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;"Tables_in_metastore" doesn't list the table name&amp;nbsp;'metastore.CM_VERSION' as you can see. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Before we continue to look into why "CM_VERSION" table is not listed in the "metastore" database,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;few things to consider, was your CM server, always configured to connect to the "metastore" database in the past? Or was it connected to a different database (do # ls -ltr /etc/cloudera-scm-server/db.*) - check for db.properties backup open the files and check for the database name. And also are you aware of &lt;/SPAN&gt;&lt;SPAN&gt;any recent changes in your cluster?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michalis&lt;/SPAN&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[0]&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_installing_configuring_dbs.html#cmig_topic_5" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_installing_configuring_dbs.html#cmig_topic_5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_hive_metastore_configure.html#topic_18_4" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_hive_metastore_configure.html#topic_18_4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 15:33:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92801#M33793</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2019-07-16T15:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92830#M33794</link>
      <description>&lt;P&gt;Thanks Michalis, just checked the db.properties as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;-rw-r--r-- 1 cloudera-scm cloudera-scm 757 3月  15 01:45 /etc/cloudera-scm-server/db.properties.~1~
-rw------- 1 cloudera-scm cloudera-scm 446 6月  18 19:37 /etc/cloudera-scm-server/db.properties.~2~
-rw------- 1 cloudera-scm cloudera-scm 448 6月  18 19:39 /etc/cloudera-scm-server/db.properties.~3~
-rw------- 1 cloudera-scm cloudera-scm 448 6月  18 19:39 /etc/cloudera-scm-server/db.properties.~4~
-rw------- 1 cloudera-scm cloudera-scm 446 6月  18 19:40 /etc/cloudera-scm-server/db.properties.~5~
-rw------- 1 cloudera-scm cloudera-scm 448 6月  18 19:40 /etc/cloudera-scm-server/db.properties.~6~
-rw------- 1 cloudera-scm cloudera-scm 443 6月  18 19:41 /etc/cloudera-scm-server/db.properties.~7~
-rw------- 1 cloudera-scm cloudera-scm 447 6月  18 19:41 /etc/cloudera-scm-server/db.properties.~8~
-rw------- 1 cloudera-scm cloudera-scm 441 6月  18 19:41 /etc/cloudera-scm-server/db.properties.~9~
-rw------- 1 cloudera-scm cloudera-scm 446 6月  18 19:41 /etc/cloudera-scm-server/db.properties.~10~
-rw------- 1 cloudera-scm cloudera-scm 452 6月  18 19:42 /etc/cloudera-scm-server/db.properties.~11~
-rw------- 1 cloudera-scm cloudera-scm 450 6月  18 19:42 /etc/cloudera-scm-server/db.properties.~12~
-rw------- 1 cloudera-scm cloudera-scm 450 6月  18 19:42 /etc/cloudera-scm-server/db.properties.~13~
-rw------- 1 cloudera-scm cloudera-scm 453 6月  18 19:43 /etc/cloudera-scm-server/db.properties.~14~
-rw------- 1 cloudera-scm cloudera-scm 446 6月  18 21:20 /etc/cloudera-scm-server/db.properties.~15~
-rw------- 1 cloudera-scm cloudera-scm 453 6月  19 13:05 /etc/cloudera-scm-server/db.properties.~16~
-rw------- 1 cloudera-scm cloudera-scm 442 7月  16 14:34 /etc/cloudera-scm-server/db.properties.~17~
-rw------- 1 cloudera-scm cloudera-scm 446 7月  16 14:34 /etc/cloudera-scm-server/db.properties.~18~
-rw------- 1 cloudera-scm cloudera-scm 458 7月  16 14:37 /etc/cloudera-scm-server/db.properties.~19~
-rw------- 1 cloudera-scm cloudera-scm 453 7月  16 14:37 /etc/cloudera-scm-server/db.properties.~20~
-rw------- 1 cloudera-scm cloudera-scm 453 7月  16 15:02 /etc/cloudera-scm-server/db.properties.~21~
-rw------- 1 cloudera-scm cloudera-scm 453 7月  16 15:03 /etc/cloudera-scm-server/db.properties.~22~
-rw------- 1 cloudera-scm cloudera-scm 453 7月  16 15:04 /etc/cloudera-scm-server/db.properties.~23~
-rw------- 1 cloudera-scm cloudera-scm 453 7月  16 16:46 /etc/cloudera-scm-server/db.properties.~24~
-rw------- 1 cloudera-scm cloudera-scm 453 7月  16 16:47 /etc/cloudera-scm-server/db.properties.~25~
-rw------- 1 cloudera-scm cloudera-scm 454 7月  16 16:47 /etc/cloudera-scm-server/db.properties.~26~
-rw------- 1 cloudera-scm cloudera-scm 453 7月  16 16:47 /etc/cloudera-scm-server/db.properties.~27~
-rw------- 1 cloudera-scm cloudera-scm 446 7月  16 17:03 /etc/cloudera-scm-server/db.properties.~28~
-rw------- 1 cloudera-scm cloudera-scm 446 7月  16 17:03 /etc/cloudera-scm-server/db.properties&lt;/PRE&gt;&lt;PRE&gt;com.cloudera.cmf.db.type=mysql
com.cloudera.cmf.db.host=localhost
com.cloudera.cmf.db.name=scm
com.cloudera.cmf.db.user=scm
com.cloudera.cmf.db.setupType=EXTERNAL
com.cloudera.cmf.db.password=mypassword&lt;/PRE&gt;&lt;P&gt;few days ago my CM started successfully. But, after restarted my server, it raised that error when I started.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I tried to drop all the databases in mysql and create again,&lt;/P&gt;&lt;P&gt;then run the following command respectively :&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="cdoc-line"&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql &lt;SPAN&gt;scm scm mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql amon amon mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql rman rman mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql hue hue mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql scm scm mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql metastore hive mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql sentry sentry mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql nav nav mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql navms navms mypassword&lt;BR /&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql oozie oozie mypassword&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 05:38:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92830#M33794</guid>
      <dc:creator>dennisli</dc:creator>
      <dc:date>2019-07-17T05:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92846#M33795</link>
      <description>&lt;P&gt;&amp;gt; few days ago my CM started successfully. But, after restarted my server, it raised that error when I started.&lt;/P&gt;&lt;P&gt;Unfortunately without the logs, or stack trace I won't be able to assess what caused the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Back to the intermixed "scm" and "metastore" database issue;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; "Now I tried to drop all the databases in mysql and create again, then run the following command respectively :"&lt;/P&gt;&lt;P&gt;I think there may have been some misunderstanding, about the intention of the script "/opt/cloudera/cm/schema/scm_prepare_database.sh". The script as the documenatation state, is to create and configure a database for iteself [Cloudera Manager Server] [0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As seen in your comment, you've used for various services (amon, rman, ... &lt;EM&gt;metastore&lt;/EM&gt;, ... etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do check in your RDBMS (MySQL), and confirm which database name CM should be connecting to.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;mysql&amp;gt; show databases;&lt;/P&gt;&lt;P&gt;and for each database confirm which one has the correct schema with the "CM_VERSION" table in.&lt;/P&gt;&lt;P&gt;mysql&amp;gt; show tables;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or something like this;&lt;/P&gt;&lt;PRE&gt;SELECT table_name, table_schema AS dbname
  FROM INFORMATION_SCHEMA.TABLES
  WHERE table_name='CM_VERSION'&lt;/PRE&gt;&lt;P&gt;Note this is just a suggestion, to find the correct database where CM server can connect to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[0] &lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/prepare_cm_database.html#cmig_topic_5_2" target="_blank" rel="noopener"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/prepare_cm_database.html#cmig_topic_5_2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 16:21:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/92846#M33795</guid>
      <dc:creator>michalis</dc:creator>
      <dc:date>2019-07-17T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/93134#M33796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/27"&gt;@michalis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have downgraded Mysql version from 10.2 to 10.0.&lt;/P&gt;&lt;P&gt;Now it is working fine:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your support:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnka,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 12:29:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/93134#M33796</guid>
      <dc:creator>viha</dc:creator>
      <dc:date>2019-07-24T12:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/269402#M206805</link>
      <description>&lt;P&gt;Hi Michalis:&lt;/P&gt;&lt;P&gt;&amp;nbsp;I just found that, I apologize for my late reply. That time I cleaned all metastore and recreated the database in MySQL and it worked. Recently however, this error happend again, as I restarted the&lt;/P&gt;&lt;PRE&gt;cloudera-scm-server and cloudera-scm-agent&lt;/PRE&gt;&lt;P&gt;By following your instruction, I found an important information: the CM_VERSION is in scm database!!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mysql&amp;gt; SELECT table_name, table_schema AS dbname
    -&amp;gt;   FROM INFORMATION_SCHEMA.TABLES
    -&amp;gt;   WHERE table_name='CM_VERSION';
+------------+--------+
| table_name | dbname |
+------------+--------+
| CM_VERSION | scm    |
+------------+--------+
1 row in set (2.11 sec)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I don't know why it's gonna find in metastore database instead of scm. Could you give me some help, Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 02:04:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/269402#M206805</guid>
      <dc:creator>dennisli</dc:creator>
      <dc:date>2019-08-30T02:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table 'metastore.CM_VERSION' doesn't exist when start Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/269406#M206807</link>
      <description>&lt;P&gt;Hi Michalis:&lt;/P&gt;&lt;P&gt;I solved this by re-run the command:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sudo /opt/cloudera/cm/schema/scm_prepare_database.sh mysql scm scm mypassword&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This problem is due to my misunderstanding for&amp;nbsp;scm_prepare_database.sh.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks a lot for your help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Aug 2019 03:12:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Table-metastore-CM-VERSION-doesn-t-exist-when-start-Cloudera/m-p/269406#M206807</guid>
      <dc:creator>dennisli</dc:creator>
      <dc:date>2019-08-30T03:12:34Z</dc:date>
    </item>
  </channel>
</rss>

