FAQ
+scm-users

Hi,

The following line is your root issue:
Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver
You need to perform all the steps documented in the MySQL setup guide
at https://ccp.cloudera.com/display/ENT41DOC/Installing+and+Configuring+a+MySQL+Database.
Specifically the section that says "Installing the JDBC Connector to
MySQL"
On Tue, Feb 12, 2013 at 8:08 PM, jeba earnest wrote:





When i try to start the etc/init.d/cloudera-scm-server its getting getting
failed

OS:cent os 6.3
version:cdh4 manager free edition

Even I checked for SELinux

[cluster@slave11 cloudera-scm-server]$ getenforce
Disabled


when i check the log


Starting SCM Server. Version: 4.1.3 (#456 built by jenkins on 20130118-1027
git: 431b52964add4983beeeb197b40df7
6756a409c5)
2013-02-12 18:45:26,986 INFO [main:enterprise.CommonMain@97] Reading
database properties from /etc/cloudera-scm-server/db.properties
2013-02-12 18:45:27,055 INFO [main:enterprise.CommonMain@130] Statistics
not enabled, c3p0 JMX disabled
2013-02-12 18:45:27,326 INFO [main:common.Version@37] HCANN000001:
Hibernate Commons Annotations {4.0.1.Final}
2013-02-12 18:45:27,344 INFO [main:hibernate.Version@41] HHH000412:
Hibernate Core {4.1.4.Final}
2013-02-12 18:45:27,346 INFO [main:cfg.Environment@239] HHH000206:
hibernate.properties not found
2013-02-12 18:45:27,348 INFO [main:cfg.Environment@342] HHH000021: Bytecode
provider name : javassist
2013-02-12 18:45:28,128 INFO [main:cfg.Configuration@718] HHH000221:
Reading mappings from resource: cmf.hbm.xml
2013-02-12 18:45:29,305 INFO
[main:internal.ConnectionProviderInitiator@188] HHH000130: Instantiating
explicit connection provider:
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
2013-02-12 18:45:29,306 INFO [main:internal.C3P0ConnectionProvider@128]
HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL:
jdbc:mysql://null/null?useUnicode=true&characterEncoding=UTF-8
2013-02-12 18:45:29,306 INFO [main:internal.C3P0ConnectionProvider@129]
HHH000046: Connection properties: {user=, password=****, autocommit=true,
release_mode=auto}
2013-02-12 18:45:29,306 INFO [main:internal.C3P0ConnectionProvider@132]
HHH000006: Autocommit mode: true
2013-02-12 18:45:29,307 ERROR [main:cmf.Main@139] Server failed.
javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable
to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
at
com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:135)
at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:56)
at com.cloudera.server.cmf.Main.initializeDatabase(Main.java:468)
at com.cloudera.server.cmf.Main.<init>(Main.java:191)
at com.cloudera.server.cmf.Main.main(Main.java:134)
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
HHH010003: JDBC Driver class not found: com.mysql.jdbc.Driver
at
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:142)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)
at
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
... 8 more
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
Unable to load class [com.mysql.jdbc.Driver]
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
at
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:139)
... 22 more
Caused by: java.lang.ClassNotFoundException: Could not load requested class
: com.mysql.jdbc.Driver
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
... 23 more
2013-02-12 19:47:44,304 INFO [main:cmf.Main@187] Starting SCM Server.
Version: 4.1.3 (#456 built by jenkins on 20130118-1027 git:
431b52964add4983beeeb197b40df76756a409c5)
2013-02-12 19:47:44,311 INFO [main:enterprise.CommonMain@97] Reading
database properties from /etc/cloudera-scm-server/db.properties
2013-02-12 19:47:44,326 INFO [main:enterprise.CommonMain@130] Statistics
not enabled, c3p0 JMX disabled
2013-02-12 19:47:44,457 INFO [main:common.Version@37] HCANN000001:
Hibernate Commons Annotations {4.0.1.Final}
2013-02-12 19:47:44,465 INFO [main:hibernate.Version@41] HHH000412:
Hibernate Core {4.1.4.Final}
2013-02-12 19:47:44,467 INFO [main:cfg.Environment@239] HHH000206:
hibernate.properties not found
2013-02-12 19:47:44,469 INFO [main:cfg.Environment@342] HHH000021: Bytecode
provider name : javassist
2013-02-12 19:47:44,706 INFO [main:cfg.Configuration@718] HHH000221:
Reading mappings from resource: cmf.hbm.xml
2013-02-12 19:47:45,117 INFO
[main:internal.ConnectionProviderInitiator@188] HHH000130: Instantiating
explicit connection provider:
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
2013-02-12 19:47:45,118 INFO [main:internal.C3P0ConnectionProvider@128]
HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL:
jdbc:mysql://null/null?useUnicode=true&characterEncoding=UTF-8
2013-02-12 19:47:45,118 INFO [main:internal.C3P0ConnectionProvider@129]
HHH000046: Connection properties: {user=, password=****, autocommit=true,
release_mode=auto}
2013-02-12 19:47:45,118 INFO [main:internal.C3P0ConnectionProvider@132]
HHH000006: Autocommit mode: true
2013-02-12 19:47:45,119 ERROR [main:cmf.Main@139] Server failed.
javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable
to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
at
com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:135)
at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:56)
at com.cloudera.server.cmf.Main.initializeDatabase(Main.java:468)
at com.cloudera.server.cmf.Main.<init>(Main.java:191)
at com.cloudera.server.cmf.Main.main(Main.java:134)
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
HHH010003: JDBC Driver class not found: com.mysql.jdbc.Driver
at
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:142)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)
at
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
... 8 more
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
Unable to load class [com.mysql.jdbc.Driver]
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
at
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:139)
... 22 more
Caused by: java.lang.ClassNotFoundException: Could not load requested class
: com.mysql.jdbc.Driver
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
... 23 more
2013-02-12 19:47:53,246 INFO [main:cmf.Main@187] Starting SCM Server.
Version: 4.1.3 (#456 built by jenkins on 20130118-1027 git:
431b52964add4983beeeb197b40df76756a409c5)
2013-02-12 19:47:53,257 INFO [main:enterprise.CommonMain@97] Reading
database properties from /etc/cloudera-scm-server/db.properties
2013-02-12 19:47:53,276 INFO [main:enterprise.CommonMain@130] Statistics
not enabled, c3p0 JMX disabled
2013-02-12 19:47:53,417 INFO [main:common.Version@37] HCANN000001:
Hibernate Commons Annotations {4.0.1.Final}
2013-02-12 19:47:53,425 INFO [main:hibernate.Version@41] HHH000412:
Hibernate Core {4.1.4.Final}
2013-02-12 19:47:53,427 INFO [main:cfg.Environment@239] HHH000206:
hibernate.properties not found
2013-02-12 19:47:53,429 INFO [main:cfg.Environment@342] HHH000021: Bytecode
provider name : javassist
2013-02-12 19:47:53,665 INFO [main:cfg.Configuration@718] HHH000221:
Reading mappings from resource: cmf.hbm.xml
2013-02-12 19:47:54,083 INFO
[main:internal.ConnectionProviderInitiator@188] HHH000130: Instantiating
explicit connection provider:
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
2013-02-12 19:47:54,084 INFO [main:internal.C3P0ConnectionProvider@128]
HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL:
jdbc:mysql://null/null?useUnicode=true&characterEncoding=UTF-8
2013-02-12 19:47:54,085 INFO [main:internal.C3P0ConnectionProvider@129]
HHH000046: Connection properties: {user=, password=****, autocommit=true,
release_mode=auto}
2013-02-12 19:47:54,085 INFO [main:internal.C3P0ConnectionProvider@132]
HHH000006: Autocommit mode: true
2013-02-12 19:47:54,088 ERROR [main:cmf.Main@139] Server failed.
javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable
to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
at
com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:135)
at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:56)
at com.cloudera.server.cmf.Main.initializeDatabase(Main.java:468)
at com.cloudera.server.cmf.Main.<init>(Main.java:191)
at com.cloudera.server.cmf.Main.main(Main.java:134)
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
HHH010003: JDBC Driver class not found: com.mysql.jdbc.Driver
at
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:142)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)
at
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
... 8 more
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
Unable to load class [com.mysql.jdbc.Driver]
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
at
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:139)
... 22 more
Caused by: java.lang.ClassNotFoundException: Could not load requested class
: com.mysql.jdbc.Driver
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
... 23 more


--
Thanks&Regards
Jebakumar



--



--
Harsh J

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedFeb 12, '13 at 6:10p
activeFeb 12, '13 at 6:10p
posts1
users1
websitecloudera.com
irc#hadoop

1 user in discussion

Harsh J: 1 post

People

Translate

site design / logo © 2022 Grokbase