hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ritesh Kumar Singh <riteshoneinamill...@gmail.com>
Subject Re: hive installation
Date Thu, 18 Feb 2016 17:05:25 GMT
try this :
https://stackoverflow.com/questions/26968712/mysql-connection-error-with-hive

*Ritesh Kumar Singh,*
*https://riteshtoday.wordpress.com/* <https://riteshtoday.wordpress.com/>

On Thu, Feb 18, 2016 at 5:27 PM, <Dan.Wu@scb.se> wrote:

> Hi,
>
> I installed hive-2.0.0 and derby-10-12.1.1. My hadoop version is 2.5.2,
> java is 1.7.79. I followed the instruction on
>
> http://www.tutorialspoint.com/hive/hive_installation.htm
>
> when I run hive, the following errors showed on the terminal. Many thanks
> for the help!
>
>
>
> SLF4J: Class path contains multiple SLF4J bindings.
>
> SLF4J: Found binding in
> [jar:file:/usr/local/apache-hive-2.0.0-bin/lib/hive-jdbc-2.0.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>
> SLF4J: Found binding in
> [jar:file:/usr/local/apache-hive-2.0.0-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>
> SLF4J: Found binding in
> [jar:file:/usr/local/hadoop-2.5.2/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
>
> SLF4J: Actual binding is of type
> [org.apache.logging.slf4j.Log4jLoggerFactory]
>
>
>
> Logging initialized using configuration in
> jar:file:/usr/local/apache-hive-2.0.0-bin/lib/hive-common-2.0.0.jar!/hive-log4j2.properties
>
> Exception in thread "main" java.lang.RuntimeException: Unable to
> instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
>
>                at
> org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1550)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:86)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:132)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104)
>
>                at
> org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3080)
>
>                at
> org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3108)
>
>                at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:521)
>
>                at
> org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:494)
>
>                at
> org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:709)
>
>                at
> org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:645)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
>
> Caused by: java.lang.reflect.InvocationTargetException
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1548)
>
>                ... 14 more
>
> Caused by: javax.jdo.JDOFatalDataStoreException: Unable to open a test
> connection to the given database. JDBC url =
> jdbc:derby://localhost:1527/metastore_db;create=true, username = APP.
> Terminating connection pool (set lazyInit to true if you expect to start
> your database after your app). Original Exception: ------
>
> java.sql.SQLException: No suitable driver found for
> jdbc:derby://localhost:1527/metastore_db;create=true
>
>                at
> java.sql.DriverManager.getConnection(DriverManager.java:596)
>
>                at
> java.sql.DriverManager.getConnection(DriverManager.java:187)
>
>                at
> com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)
>
>                at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)
>
>                at
> com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)
>
>                at
> org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:483)
>
>                at
> org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:296)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:606)
>
>                at
> org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)
>
>                at
> org.datanucleus.NucleusContextHelper.createStoreManagerForProperties(NucleusContextHelper.java:133)
>
>                at
> org.datanucleus.PersistenceNucleusContextImpl.initialise(PersistenceNucleusContextImpl.java:420)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:821)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:338)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:217)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
>
>                at java.security.AccessController.doPrivileged(Native
> Method)
>
>                at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
>
>                at
> javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
>
>                at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)
>
>                at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:397)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:426)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:320)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:287)
>
>                at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
>
>                at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
>
>                at
> org.apache.hadoop.hive.metastore.RawStoreProxy.<init>(RawStoreProxy.java:55)
>
>                at
> org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:64)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:516)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:481)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:547)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:370)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:78)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5749)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:219)
>
>                at
> org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:67)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1548)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:86)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:132)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104)
>
>                at
> org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3080)
>
>                at
> org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3108)
>
>                at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:521)
>
>                at
> org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:494)
>
>                at
> org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:709)
>
>                at
> org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:645)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
>
> ------
>
>
>
> NestedThrowables:
>
> java.sql.SQLException: Unable to open a test connection to the given
> database. JDBC url = jdbc:derby://localhost:1527/metastore_db;create=true,
> username = APP. Terminating connection pool (set lazyInit to true if you
> expect to start your database after your app). Original Exception: ------
>
> java.sql.SQLException: No suitable driver found for
> jdbc:derby://localhost:1527/metastore_db;create=true
>
>                at
> java.sql.DriverManager.getConnection(DriverManager.java:596)
>
>                at
> java.sql.DriverManager.getConnection(DriverManager.java:187)
>
>                at
> com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)
>
>                at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)
>
>                at
> com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)
>
>                at
> org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:483)
>
>                at
> org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:296)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:606)
>
>                at
> org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)
>
>                at
> org.datanucleus.NucleusContextHelper.createStoreManagerForProperties(NucleusContextHelper.java:133)
>
>                at
> org.datanucleus.PersistenceNucleusContextImpl.initialise(PersistenceNucleusContextImpl.java:420)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:821)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:338)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:217)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
>
>                at java.security.AccessController.doPrivileged(Native
> Method)
>
>                at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
>
>                at
> javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
>
>                at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)
>
>                at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:397)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:426)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:320)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:287)
>
>                at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
>
>                at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
>
>                at
> org.apache.hadoop.hive.metastore.RawStoreProxy.<init>(RawStoreProxy.java:55)
>
>                at
> org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:64)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:516)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:481)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:547)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:370)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:78)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5749)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:219)
>
>                at
> org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:67)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1548)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:86)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:132)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104)
>
>                at
> org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3080)
>
>                at
> org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3108)
>
>                at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:521)
>
>                at
> org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:494)
>
>                at
> org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:709)
>
>                at
> org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:645)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
>
> ------
>
>
>
>                at
> org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:529)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:834)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:338)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:217)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
>
>                at java.security.AccessController.doPrivileged(Native
> Method)
>
>                at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
>
>                at
> javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
>
>                at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)
>
>                at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:397)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:426)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:320)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:287)
>
>                at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
>
>                at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
>
>                at
> org.apache.hadoop.hive.metastore.RawStoreProxy.<init>(RawStoreProxy.java:55)
>
>                at
> org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:64)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:516)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:481)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:547)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:370)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:78)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5749)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:219)
>
>                at
> org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:67)
>
>                ... 19 more
>
> Caused by: java.sql.SQLException: Unable to open a test connection to the
> given database. JDBC url =
> jdbc:derby://localhost:1527/metastore_db;create=true, username = APP.
> Terminating connection pool (set lazyInit to true if you expect to start
> your database after your app). Original Exception: ------
>
> java.sql.SQLException: No suitable driver found for
> jdbc:derby://localhost:1527/metastore_db;create=true
>
>                at
> java.sql.DriverManager.getConnection(DriverManager.java:596)
>
>                at
> java.sql.DriverManager.getConnection(DriverManager.java:187)
>
>                at
> com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)
>
>                at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)
>
>                at
> com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)
>
>                at
> org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:483)
>
>                at
> org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:296)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:606)
>
>                at
> org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)
>
>                at
> org.datanucleus.NucleusContextHelper.createStoreManagerForProperties(NucleusContextHelper.java:133)
>
>                at
> org.datanucleus.PersistenceNucleusContextImpl.initialise(PersistenceNucleusContextImpl.java:420)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:821)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:338)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:217)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
>
>                at java.security.AccessController.doPrivileged(Native
> Method)
>
>                at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
>
>                at
> javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
>
>                at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)
>
>                at
> javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:397)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:426)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:320)
>
>                at
> org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:287)
>
>                at
> org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
>
>                at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
>
>                at
> org.apache.hadoop.hive.metastore.RawStoreProxy.<init>(RawStoreProxy.java:55)
>
>                at
> org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:64)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:516)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:481)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:547)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:370)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:78)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5749)
>
>                at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:219)
>
>                at
> org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:67)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1548)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:86)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:132)
>
>                at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104)
>
>                at
> org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3080)
>
>                at
> org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3108)
>
>                at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:521)
>
>                at
> org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:494)
>
>                at
> org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:709)
>
>                at
> org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:645)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                at java.lang.reflect.Method.invoke(Method.java:606)
>
>                at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
>
> ------
>
>
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> com.jolbox.bonecp.PoolUtil.generateSQLException(PoolUtil.java:192)
>
>                at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:422)
>
>                at
> com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)
>
>                at
> org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:483)
>
>                at
> org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:296)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>                at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>                at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>                at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>                at
> org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:606)
>
>                at
> org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)
>
>                at
> org.datanucleus.NucleusContextHelper.createStoreManagerForProperties(NucleusContextHelper.java:133)
>
>                at
> org.datanucleus.PersistenceNucleusContextImpl.initialise(PersistenceNucleusContextImpl.java:420)
>
>                at
> org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:821)
>
>                ... 48 more
>
> Caused by: java.sql.SQLException: No suitable driver found for
> jdbc:derby://localhost:1527/metastore_db;create=true
>
>                at
> java.sql.DriverManager.getConnection(DriverManager.java:596)
>
>                at
> java.sql.DriverManager.getConnection(DriverManager.java:187)
>
>                at
> com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)
>
>                at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)
>
>                ... 60 more
>
>
>
> */Dan*
>

Mime
View raw message