2020-04-01

求助,hive之前都可以启动,但是突然就不行了,启动就出现如下错误。
我就杀掉了runjar进程就好了,这是为什么呢?这个进程是怎么出来了???
Logging initialized using configuration in jar:file:/home/hadoop/app/apache-hive-1.2.2-bin/lib/hive-common-1.2.2.jar!/hive-log4j.propertiesException in thread “main” java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:522) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136)Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1523) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(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:3005) at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3024) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:503) … 8 moreCaused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1521) … 14 moreCaused by: javax.jdo.JDOFatalDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:derby:;databaseName=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: Failed to start database ‘metastore_db’ with class loader sun.misc.Launcher A p p C l a s s L o a d e r @ 41629346 , s e e t h e n e x t e x c e p t i o n f o r d e t a i l s . a t o r g . a p a c h e . d e r b y . i m p l . j d b c . S Q L E x c e p t i o n F a c t o r y 40. g e t S Q L E x c e p t i o n ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . i m p l . j d b c . U t i l . n e w E m b e d S Q L E x c e p t i o n ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . i m p l . j d b c . U t i l . s e e N e x t E x c e p t i o n ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . i m p l . j d b c . E m b e d C o n n e c t i o n . b o o t D a t a b a s e ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . i m p l . j d b c . E m b e d C o n n e c t i o n . < i n i t > ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . i m p l . j d b c . E m b e d C o n n e c t i o n 40. < i n i t > ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . j d b c . D r i v e r 40. g e t N e w E m b e d C o n n e c t i o n ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . j d b c . I n t e r n a l D r i v e r . c o n n e c t ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . j d b c . D r i v e r 20. c o n n e c t ( U n k n o w n S o u r c e ) a t o r g . a p a c h e . d e r b y . j d b c . A u t o l o a d e d D r i v e r . c o n n e c t ( U n k n o w n S o u r c e ) a t j a v a . s q l . D r i v e r M a n a g e r . g e t C o n n e c t i o n ( D r i v e r M a n a g e r . j a v a : 664 ) a t j a v a . s q l . D r i v e r M a n a g e r . g e t C o n n e c t i o n ( D r i v e r M a n a g e r . j a v a : 208 ) a t c o m . j o l b o x . b o n e c p . B o n e C P . o b t a i n R a w I n t e r n a l C o n n e c t i o n ( B o n e C P . j a v a : 361 ) a t c o m . j o l b o x . b o n e c p . B o n e C P . < i n i t > ( B o n e C P . j a v a : 416 ) a t c o m . j o l b o x . b o n e c p . B o n e C P D a t a S o u r c e . g e t C o n n e c t i o n ( B o n e C P D a t a S o u r c e . j a v a : 120 ) a t o r g . d a t a n u c l e u s . s t o r e . r d b m s . C o n n e c t i o n F a c t o r y I m p l AppClassLoader@41629346, see the next exception for details. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source) at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) at org.apache.derby.jdbc.Driver20.connect(Unknown Source) at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) 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 AppClassLoader@41629346,seethenextexceptionfordetails.atorg.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(UnknownSource)atorg.apache.derby.impl.jdbc.Util.newEmbedSQLException(UnknownSource)atorg.apache.derby.impl.jdbc.Util.seeNextException(UnknownSource)atorg.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(UnknownSource)atorg.apache.derby.impl.jdbc.EmbedConnection.<init>(UnknownSource)atorg.apache.derby.impl.jdbc.EmbedConnection40.<init>(UnknownSource)atorg.apache.derby.jdbc.Driver40.getNewEmbedConnection(UnknownSource)atorg.apache.derby.jdbc.InternalDriver.connect(UnknownSource)atorg.apache.derby.jdbc.Driver20.connect(UnknownSource)atorg.apache.derby.jdbc.AutoloadedDriver.connect(UnknownSource)atjava.sql.DriverManager.getConnection(DriverManager.java:664)atjava.sql.DriverManager.getConnection(DriverManager.java:208)atcom.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)atcom.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)atcom.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)atorg.datanucleus.store.rdbms.ConnectionFactoryImplManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:501)
(这只是报错的一部分,后面还有很多很多)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值