Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

failed to start CM manager

failed to start CM manager

New Contributor

I am trying to start cloudera manager, but I get the following message on the log. 

 

I installed mysql on the same server with mysql jdbc connector.

 

2014-10-11 11:51:24,505 INFO [main:mortbay.log@67] Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2014-10-11 11:51:24,507 INFO [main:mortbay.log@67] Registered SubjectType HDFS
2014-10-11 11:51:24,510 INFO [main:mortbay.log@67] Registered SubjectType HDFS-NAMENODE
2014-10-11 11:51:24,512 INFO [main:mortbay.log@67] Registered SubjectType HDFS-DATANODE
2014-10-11 11:51:24,512 INFO [main:mortbay.log@67] Registered SubjectType HDFS-SECONDARYNAMENODE
2014-10-11 11:51:24,512 INFO [main:mortbay.log@67] Registered SubjectType HDFS-JOURNALNODE
2014-10-11 11:51:24,513 INFO [main:mortbay.log@67] Registered SubjectType HDFS-HTTPFS
2014-10-11 11:51:24,513 INFO [main:mortbay.log@67] Registered SubjectType HDFS-FAILOVERCONTROLLER
2014-10-11 11:51:24,513 INFO [main:mortbay.log@67] Registered SubjectType HDFS-NFSGATEWAY
2014-10-11 11:51:24,513 INFO [main:mortbay.log@67] Registered SubjectType HBASE
2014-10-11 11:51:24,514 INFO [main:mortbay.log@67] Registered SubjectType HBASE-MASTER
2014-10-11 11:51:24,514 INFO [main:mortbay.log@67] Registered SubjectType HBASE-REGIONSERVER
2014-10-11 11:51:24,514 INFO [main:mortbay.log@67] Registered SubjectType HBASE-HBASETHRIFTSERVER
2014-10-11 11:51:24,515 INFO [main:mortbay.log@67] Registered SubjectType HBASE-HBASERESTSERVER
2014-10-11 11:51:24,515 INFO [main:mortbay.log@67] Registered SubjectType MAPREDUCE
2014-10-11 11:51:24,515 INFO [main:mortbay.log@67] Registered SubjectType MAPREDUCE-JOBTRACKER
2014-10-11 11:51:24,517 INFO [main:mortbay.log@67] Registered SubjectType MAPREDUCE-TASKTRACKER
2014-10-11 11:51:24,517 INFO [main:mortbay.log@67] Registered SubjectType MAPREDUCE-FAILOVERCONTROLLER
2014-10-11 11:51:24,518 INFO [main:mortbay.log@67] Registered SubjectType MGMT
2014-10-11 11:51:24,518 INFO [main:mortbay.log@67] Registered SubjectType MGMT-ACTIVITYMONITOR
2014-10-11 11:51:24,518 INFO [main:mortbay.log@67] Registered SubjectType MGMT-SERVICEMONITOR
2014-10-11 11:51:24,519 INFO [main:mortbay.log@67] Registered SubjectType MGMT-HOSTMONITOR
2014-10-11 11:51:24,519 INFO [main:mortbay.log@67] Registered SubjectType MGMT-EVENTSERVER
2014-10-11 11:51:24,519 INFO [main:mortbay.log@67] Registered SubjectType MGMT-ALERTPUBLISHER
2014-10-11 11:51:24,519 INFO [main:mortbay.log@67] Registered SubjectType MGMT-REPORTSMANAGER
2014-10-11 11:51:24,520 INFO [main:mortbay.log@67] Registered SubjectType MGMT-NAVIGATOR
2014-10-11 11:51:24,520 INFO [main:mortbay.log@67] Registered SubjectType MGMT-NAVIGATORMETASERVER
2014-10-11 11:51:24,520 INFO [main:mortbay.log@67] Registered SubjectType HOST
2014-10-11 11:51:24,520 INFO [main:mortbay.log@67] Registered SubjectType ZOOKEEPER
2014-10-11 11:51:24,520 INFO [main:mortbay.log@67] Registered SubjectType ZOOKEEPER-SERVER
2014-10-11 11:51:24,521 INFO [main:mortbay.log@67] Registered SubjectType FLUME
2014-10-11 11:51:24,521 INFO [main:mortbay.log@67] Registered SubjectType FLUME-AGENT
2014-10-11 11:51:24,521 INFO [main:mortbay.log@67] Registered SubjectType IMPALA
2014-10-11 11:51:24,521 INFO [main:mortbay.log@67] Registered SubjectType IMPALA-IMPALAD
2014-10-11 11:51:24,521 INFO [main:mortbay.log@67] Registered SubjectType IMPALA-STATESTORE
2014-10-11 11:51:24,522 INFO [main:mortbay.log@67] Registered SubjectType IMPALA-CATALOGSERVER
2014-10-11 11:51:24,522 INFO [main:mortbay.log@67] Registered SubjectType IMPALA-LLAMA
2014-10-11 11:51:24,522 INFO [main:mortbay.log@67] Registered SubjectType YARN
2014-10-11 11:51:24,522 INFO [main:mortbay.log@67] Registered SubjectType YARN-RESOURCEMANAGER
2014-10-11 11:51:24,523 INFO [main:mortbay.log@67] Registered SubjectType YARN-NODEMANAGER
2014-10-11 11:51:24,523 INFO [main:mortbay.log@67] Registered SubjectType YARN-JOBHISTORY
2014-10-11 11:51:24,523 INFO [main:mortbay.log@67] Registered SubjectType OOZIE
2014-10-11 11:51:24,524 INFO [main:mortbay.log@67] Registered SubjectType OOZIE-OOZIE_SERVER
2014-10-11 11:51:24,524 INFO [main:mortbay.log@67] Registered SubjectType HIVE
2014-10-11 11:51:24,524 INFO [main:mortbay.log@67] Registered SubjectType HIVE-HIVEMETASTORE
2014-10-11 11:51:24,524 INFO [main:mortbay.log@67] Registered SubjectType HIVE-WEBHCAT
2014-10-11 11:51:24,525 INFO [main:mortbay.log@67] Registered SubjectType HIVE-HIVESERVER2
2014-10-11 11:51:24,525 INFO [main:mortbay.log@67] Registered SubjectType HUE
2014-10-11 11:51:24,525 INFO [main:mortbay.log@67] Registered SubjectType HUE-HUE_SERVER
2014-10-11 11:51:24,525 INFO [main:mortbay.log@67] Registered SubjectType HUE-BEESWAX_SERVER
2014-10-11 11:51:24,526 INFO [main:mortbay.log@67] Registered SubjectType HUE-KT_RENEWER
2014-10-11 11:51:24,526 INFO [main:mortbay.log@67] Registered SubjectType SQOOP
2014-10-11 11:51:24,526 INFO [main:mortbay.log@67] Registered SubjectType SQOOP-SQOOP_SERVER
2014-10-11 11:51:24,526 INFO [main:mortbay.log@67] Registered SubjectType SOLR
2014-10-11 11:51:24,526 INFO [main:mortbay.log@67] Registered SubjectType SOLR-SOLR_SERVER
2014-10-11 11:51:24,526 INFO [main:mortbay.log@67] Registered SubjectType KS_INDEXER
2014-10-11 11:51:24,527 INFO [main:mortbay.log@67] Registered SubjectType KS_INDEXER-HBASE_INDEXER
2014-10-11 11:51:24,567 INFO [main:support.ClassPathXmlApplicationContext@456] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@13c695a6: startup date [Sat Oct 11 11:51:24 GMT 2014]; root of context hierarchy
2014-10-11 11:51:24,614 INFO [main:xml.XmlBeanDefinitionReader@315] Loading XML bean definitions from class path resource [webapp/WEB-INF/spring/beanRefFactory.xml]
2014-10-11 11:51:24,738 INFO [main:support.DefaultListableBeanFactory@557] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@30419d05: defining beans [bootstrapContext,rootContext]; root of factory hierarchy
2014-10-11 11:51:24,765 INFO [main:support.GenericApplicationContext@456] Refreshing org.springframework.context.support.GenericApplicationContext@4bd53f5b: startup date [Sat Oct 11 11:51:24 GMT 2014]; root of context hierarchy
2014-10-11 11:51:24,766 INFO [main:support.DefaultListableBeanFactory@557] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3d5311bd: defining beans [commandLineConfigurationBean,entityManagerFactoryBean,com.cloudera.server.cmf.TrialState,com.cloudera.server.cmf.TrialManager,com.cloudera.cmf.crypto.LicenseLoader]; root of factory hierarchy
2014-10-11 11:51:24,838 INFO [main:enterprise.CommonMain@105] Reading database properties from /etc/cloudera-scm-server/db.properties
2014-10-11 11:51:24,842 INFO [main:enterprise.CommonMain@148] Statistics not enabled, c3p0 JMX disabled
2014-10-11 11:51:24,974 INFO [main:common.Version@37] HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
2014-10-11 11:51:24,980 INFO [main:hibernate.Version@41] HHH000412: Hibernate Core {4.2.2.Final}
2014-10-11 11:51:24,982 INFO [main:cfg.Environment@239] HHH000206: hibernate.properties not found
2014-10-11 11:51:24,984 INFO [main:cfg.Environment@342] HHH000021: Bytecode provider name : javassist
2014-10-11 11:51:25,275 INFO [main:cfg.Configuration@728] HHH000221: Reading mappings from resource: cmf.hbm.xml
2014-10-11 11:51:25,537 INFO [main:internal.ConnectionProviderInitiator@188] HHH000130: Instantiating explicit connection provider: org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
2014-10-11 11:51:25,538 INFO [main:internal.C3P0ConnectionProvider@128] HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/cloudera_manager?useUnicode=true&characterEncoding=UTF-8
2014-10-11 11:51:25,538 INFO [main:internal.C3P0ConnectionProvider@129] HHH000046: Connection properties: {user=root, password=****, autocommit=true, release_mode=auto}
2014-10-11 11:51:25,538 INFO [main:internal.C3P0ConnectionProvider@132] HHH000006: Autocommit mode: true
2014-10-11 11:51:25,561 INFO [main:log.MLog@80] MLog clients using log4j logging.
2014-10-11 11:51:25,649 INFO [main:c3p0.C3P0Registry@204] Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10]
2014-10-11 11:51:25,683 INFO [main:internal.C3P0ConnectionProvider@214] HHH000149: JDBC isolation level: READ_COMMITTED
2014-10-11 11:51:25,719 INFO [main:impl.AbstractPoolBackedDataSource@462] Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@ef1e332b [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@243bb625 [ acquireIncrement -> 3, acquireRetryAttempts -> 5, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 20000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2s26i1941yrm36g92janw|2d35da43, idleConnectionTestPeriod -> 300, initialPoolSize -> 3, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 50, maxStatements -> 2500, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@4e10171 [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 2s26i1941yrm36g92janw|79024994, jdbcUrl -> jdbc:mysql://localhost/cloudera_manager?useUnicode=true&characterEncoding=UTF-8, properties -> {user=******, password=******, autocommit=true, release_mode=auto} ], preferredTestQuery -> null, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> 2s26i1941yrm36g92janw|23e45a5c, numHelperThreads -> 3 ]
2014-10-11 11:51:25,941 INFO [main:dialect.Dialect@130] HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2014-10-11 11:51:25,949 INFO [main:internal.LobCreatorBuilder@120] HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
2014-10-11 11:51:26,055 INFO [main:support.DefaultListableBeanFactory@422] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3d5311bd: defining beans [commandLineConfigurationBean,entityManagerFactoryBean,com.cloudera.server.cmf.TrialState,com.cloudera.server.cmf.TrialManager,com.cloudera.cmf.crypto.LicenseLoader]; root of factory hierarchy
2014-10-11 11:51:26,055 ERROR [main:cmf.Main@201] Server failed.
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 javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at com.cloudera.server.cmf.Main.bootstrapSpringContext(Main.java:351)
at com.cloudera.server.cmf.Main.<init>(Main.java:213)
at com.cloudera.server.cmf.Main.main(Main.java:196)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1440)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:247)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 17 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:924)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:59)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:153)
at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:92)
at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:50)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
... 22 more
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:3486)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configuration.java:3475)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3463)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1355)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1756)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
... 29 more
Caused by: org.hibernate.MappingException: class demo.fabric.Employee not found while looking for property: id
at org.hibernate.internal.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:232)
at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:324)
at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:450)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:383)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:323)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:174)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:3483)
... 35 more
Caused by: java.lang.ClassNotFoundException: demo.fabric.Employee
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.internal.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:228)
... 41 more

 

Thanks in advance.

2 REPLIES 2

Re: failed to start CM manager

Cloudera Employee

demo.fabric.employee smells like some sample code.  Exactly which MySQL jars are ending up on your classpath?  It's likely that one of them has a Hibernate configuration file, and somehow that's getting loaded in prefence to ours.

Re: failed to start CM manager

New Contributor
Thank you.
I have solved my problem by remove other mysql-connector-java.jar which is not in /usr/share/java/