1.问题现象
部署 Flume Hive Sink时,出现的错误在此记录一下。
java.lang.NoSuchMethodError: org.apache.hadoop.hive.metastore.HiveMetaStoreClient.
2.问题原因
这个问题是由于
hive-hcatalog-core.jar
hive-hcatalog-pig-adapter.jar
hive-hcatalog-server-extensions.jar
hive-hcatalog-streaming.jar
的版本不匹配。
3.问题解决
需要检查hive.metastore使用的hive-hcatalog jar包版本,保证flume用的跟它一致,可以把metastore服务器上的jar包,拷贝到flume libs目录下。
4.附上错误日志明细
2020-02-28 18:51:32,749 (SinkRunner-PollingRunner-DefaultSinkProcessor) [INFO - org.apache.flume.sink.hive.HiveSink.getOrCreateWriter(HiveSink.java:344)] sink1: Creating Writer to Hive end point : {metaStoreUri=‘thrift://...:9083’, database=‘testdb’, table=‘chat_logs’, partitionVals=[20200228] }
2020-02-28 18:51:32,885 (SinkRunner-PollingRunner-DefaultSinkProcessor) [WARN - org.apache.flume.sink.hive.HiveSink.drainOneBatch(HiveSink.java:325)] sink1 : Failed connecting to EndPoint {metaStoreUri=‘thrift://...:9083’, database=‘testdb’, table=‘chat_logs’, partitionVals=[20200228] }
org.apache.flume.sink.hive.HiveWriter C o n n e c t E x c e p t i o n : F a i l e d c o n n e c t i n g t o E n d P o i n t m e t a S t o r e U r i = ′ t h r i f t : / / ∗ . ∗ . ∗ . ∗ : 908 3 ′ , d a t a b a s e = ′ t e s t d b ′ , t a b l e = ′ c h a t l o g s ′ , p a r t i t i o n V a l s = [ 20200228 ] a t o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e W r i t e r . < i n i t > ( H i v e W r i t e r . j a v a : 99 ) a t o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e S i n k . g e t O r C r e a t e W r i t e r ( H i v e S i n k . j a v a : 346 ) a t o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e S i n k . d r a i n O n e B a t c h ( H i v e S i n k . j a v a : 297 ) a t o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e S i n k . p r o c e s s ( H i v e S i n k . j a v a : 254 ) a t o r g . a p a c h e . f l u m e . s i n k . D e f a u l t S i n k P r o c e s s o r . p r o c e s s ( D e f a u l t S i n k P r o c e s s o r . j a v a : 67 ) a t o r g . a p a c h e . f l u m e . S i n k R u n n e r ConnectException: Failed connecting to EndPoint {metaStoreUri='thrift://*.*.*.*:9083', database='testdb', table='chat_logs', partitionVals=[20200228] } at org.apache.flume.sink.hive.HiveWriter.<init>(HiveWriter.java:99) at org.apache.flume.sink.hive.HiveSink.getOrCreateWriter(HiveSink.java:346) at org.apache.flume.sink.hive.HiveSink.drainOneBatch(HiveSink.java:297) at org.apache.flume.sink.hive.HiveSink.process(HiveSink.java:254) at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:67) at org.apache.flume.SinkRunner ConnectException:FailedconnectingtoEndPointmetaStoreUri=′thrift://∗.∗.∗.∗:9083′,database=′testdb′,table=′chatlogs′,partitionVals=[20200228]atorg.apache.flume.sink.hive.HiveWriter.<init>(HiveWriter.java:99)atorg.apache.flume.sink.hive.HiveSink.getOrCreateWriter(HiveSink.java:346)atorg.apache.flume.sink.hive.HiveSink.drainOneBatch(HiveSink.java:297)atorg.apache.flume.sink.hive.HiveSink.process(HiveSink.java:254)atorg.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:67)atorg.apache.flume.SinkRunnerPollingRunner.run(SinkRunner.java:145)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.flume.sink.hive.HiveWriter C o n n e c t E x c e p t i o n : F a i l e d c o n n e c t i n g t o E n d P o i n t m e t a S t o r e U r i = ′ t h r i f t : / / ∗ . ∗ . ∗ . ∗ : 908 3 ′ , d a t a b a s e = ′ t e s t d b ′ , t a b l e = ′ c h a t l o g s ′ , p a r t i t i o n V a l s = [ 20200228 ] a t o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e W r i t e r . n e w C o n n e c t i o n ( H i v e W r i t e r . j a v a : 383 ) a t o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e W r i t e r . < i n i t > ( H i v e W r i t e r . j a v a : 86 ) . . . 6 m o r e C a u s e d b y : c o m . g o o g l e . c o m m o n . u t i l . c o n c u r r e n t . U n c h e c k e d E x e c u t i o n E x c e p t i o n : j a v a . l a n g . R u n t i m e E x c e p t i o n : U n a b l e t o i n s t a n t i a t e o r g . a p a c h e . h i v e . h c a t a l o g . c o m m o n . H i v e C l i e n t C a c h e ConnectException: Failed connecting to EndPoint {metaStoreUri='thrift://*.*.*.*:9083', database='testdb', table='chat_logs', partitionVals=[20200228] } at org.apache.flume.sink.hive.HiveWriter.newConnection(HiveWriter.java:383) at org.apache.flume.sink.hive.HiveWriter.<init>(HiveWriter.java:86) ... 6 more Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: Unable to instantiate org.apache.hive.hcatalog.common.HiveClientCache ConnectException:FailedconnectingtoEndPointmetaStoreUri=′thrift://∗.∗.∗.∗:9083′,database=′testdb′,table=′chatlogs′,partitionVals=[20200228]atorg.apache.flume.sink.hive.HiveWriter.newConnection(HiveWriter.java:383)atorg.apache.flume.sink.hive.HiveWriter.<init>(HiveWriter.java:86)...6moreCausedby:com.google.common.util.concurrent.UncheckedExecutionException:java.lang.RuntimeException:Unabletoinstantiateorg.apache.hive.hcatalog.common.HiveClientCacheCacheableHiveMetaStoreClient
at com.google.common.cache.LocalCache S e g m e n t . g e t ( L o c a l C a c h e . j a v a : 2234 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e . g e t ( L o c a l C a c h e . j a v a : 3965 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache Segment.get(LocalCache.java:2234)atcom.google.common.cache.LocalCache.get(LocalCache.java:3965)atcom.google.common.cache.LocalCacheLocalManualCache.get(LocalCache.java:4764)
at org.apache.hive.hcatalog.common.HiveClientCache.getOrCreate(HiveClientCache.java:292)
at org.apache.hive.hcatalog.common.HiveClientCache.get(HiveClientCache.java:267)
at org.apache.hive.hcatalog.common.HCatUtil.getHiveMetastoreClient(HCatUtil.java:558)
at org.apache.hive.hcatalog.streaming.HiveEndPoint C o n n e c t i o n I m p l . g e t M e t a S t o r e C l i e n t ( H i v e E n d P o i n t . j a v a : 545 ) a t o r g . a p a c h e . h i v e . h c a t a l o g . s t r e a m i n g . H i v e E n d P o i n t ConnectionImpl.getMetaStoreClient(HiveEndPoint.java:545) at org.apache.hive.hcatalog.streaming.HiveEndPoint ConnectionImpl.getMetaStoreClient(HiveEndPoint.java:545)atorg.apache.hive.hcatalog.streaming.HiveEndPointConnectionImpl.(HiveEndPoint.java:312)
at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.(HiveEndPoint.java:278)
at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnectionImpl(HiveEndPoint.java:215)
at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnection(HiveEndPoint.java:192)
at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnection(HiveEndPoint.java:105)
at org.apache.flume.sink.hive.HiveWriter$8.call(HiveWriter.java:379)
at org.apache.flume.sink.hive.HiveWriter$8.call(HiveWriter.java:376)
at org.apache.flume.sink.hive.HiveWriter 11. c a l l ( H i v e W r i t e r . j a v a : 428 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1142 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r 11.call(HiveWriter.java:428) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor 11.call(HiveWriter.java:428)atjava.util.concurrent.FutureTask.run(FutureTask.java:266)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:617)
… 1 more
Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hive.hcatalog.common.HiveClientCache$CacheableHiveMetaStoreClient
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:118)
at org.apache.hive.hcatalog.common.HiveClientCache$5.call(HiveClientCache.java:296)
at org.apache.hive.hcatalog.common.HiveClientCache 5. c a l l ( H i v e C l i e n t C a c h e . j a v a : 292 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e 5.call(HiveClientCache.java:292) at com.google.common.cache.LocalCache 5.call(HiveClientCache.java:292)atcom.google.common.cache.LocalCacheLocalManualCache 1. l o a d ( L o c a l C a c h e . j a v a : 4767 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e 1.load(LocalCache.java:4767) at com.google.common.cache.LocalCache 1.load(LocalCache.java:4767)atcom.google.common.cache.LocalCacheLoadingValueReference.loadFuture(LocalCache.java:3568)
at com.google.common.cache.LocalCache S e g m e n t . l o a d S y n c ( L o c a l C a c h e . j a v a : 2350 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache Segment.loadSync(LocalCache.java:2350)atcom.google.common.cache.LocalCacheSegment.lockedGetOrLoad(LocalCache.java:2313)
at com.google.common.cache.LocalCache S e g m e n t . g e t ( L o c a l C a c h e . j a v a : 2228 ) . . . 18 m o r e C a u s e d b y : j a v a . l a n g . r e f l e c t . I n v o c a t i o n T a r g e t E x c e p t i o n a t s u n . r e f l e c t . N a t i v e C o n s t r u c t o r A c c e s s o r I m p l . n e w I n s t a n c e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e C o n s t r u c t o r A c c e s s o r I m p l . n e w I n s t a n c e ( N a t i v e C o n s t r u c t o r A c c e s s o r I m p l . j a v a : 62 ) a t s u n . r e f l e c t . D e l e g a t i n g C o n s t r u c t o r A c c e s s o r I m p l . n e w I n s t a n c e ( D e l e g a t i n g C o n s t r u c t o r A c c e s s o r I m p l . j a v a : 45 ) a t j a v a . l a n g . r e f l e c t . C o n s t r u c t o r . n e w I n s t a n c e ( C o n s t r u c t o r . j a v a : 422 ) a t o r g . a p a c h e . h a d o o p . h i v e . m e t a s t o r e . M e t a S t o r e U t i l s . n e w I n s t a n c e ( M e t a S t o r e U t i l s . j a v a : 1521 ) . . . 28 m o r e C a u s e d b y : j a v a . l a n g . N o S u c h M e t h o d E r r o r : o r g . a p a c h e . h a d o o p . h i v e . m e t a s t o r e . H i v e M e t a S t o r e C l i e n t . < i n i t > ( L o r g / a p a c h e / h a d o o p / h i v e / c o n f / H i v e C o n f ; L o r g / a p a c h e / h a d o o p / h i v e / m e t a s t o r e / H i v e M e t a H o o k L o a d e r ; L j a v a / l a n g / B o o l e a n ; ) V a t o r g . a p a c h e . h i v e . h c a t a l o g . c o m m o n . H i v e C l i e n t C a c h e Segment.get(LocalCache.java:2228) ... 18 more Caused 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:422) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1521) ... 28 more Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(Lorg/apache/hadoop/hive/conf/HiveConf;Lorg/apache/hadoop/hive/metastore/HiveMetaHookLoader;Ljava/lang/Boolean;)V at org.apache.hive.hcatalog.common.HiveClientCache Segment.get(LocalCache.java:2228)...18moreCausedby:java.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)atjava.lang.reflect.Constructor.newInstance(Constructor.java:422)atorg.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1521)...28moreCausedby:java.lang.NoSuchMethodError:org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(Lorg/apache/hadoop/hive/conf/HiveConf;Lorg/apache/hadoop/hive/metastore/HiveMetaHookLoader;Ljava/lang/Boolean;)Vatorg.apache.hive.hcatalog.common.HiveClientCacheCacheableHiveMetaStoreClient.(HiveClientCache.java:409)
… 33 more
2020-02-28 18:51:32,887 (SinkRunner-PollingRunner-DefaultSinkProcessor) [ERROR - org.apache.flume.SinkRunner P o l l i n g R u n n e r . r u n ( S i n k R u n n e r . j a v a : 158 ) ] U n a b l e t o d e l i v e r e v e n t . E x c e p t i o n f o l l o w s . o r g . a p a c h e . f l u m e . E v e n t D e l i v e r y E x c e p t i o n : o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e W r i t e r PollingRunner.run(SinkRunner.java:158)] Unable to deliver event. Exception follows. org.apache.flume.EventDeliveryException: org.apache.flume.sink.hive.HiveWriter PollingRunner.run(SinkRunner.java:158)]Unabletodeliverevent.Exceptionfollows.org.apache.flume.EventDeliveryException:org.apache.flume.sink.hive.HiveWriterConnectException: Failed connecting to EndPoint {metaStoreUri=‘thrift://...:9083’, database=‘testdb’, table=‘chat_logs’, partitionVals=[20200228] }
at org.apache.flume.sink.hive.HiveSink.process(HiveSink.java:269)
at org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:67)
at org.apache.flume.SinkRunner P o l l i n g R u n n e r . r u n ( S i n k R u n n e r . j a v a : 145 ) a t j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 745 ) C a u s e d b y : o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e W r i t e r PollingRunner.run(SinkRunner.java:145) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.flume.sink.hive.HiveWriter PollingRunner.run(SinkRunner.java:145)atjava.lang.Thread.run(Thread.java:745)Causedby:org.apache.flume.sink.hive.HiveWriterConnectException: Failed connecting to EndPoint {metaStoreUri=‘thrift://...:9083’, database=‘testdb’, table=‘chat_logs’, partitionVals=[20200228] }
at org.apache.flume.sink.hive.HiveWriter.(HiveWriter.java:99)
at org.apache.flume.sink.hive.HiveSink.getOrCreateWriter(HiveSink.java:346)
at org.apache.flume.sink.hive.HiveSink.drainOneBatch(HiveSink.java:297)
at org.apache.flume.sink.hive.HiveSink.process(HiveSink.java:254)
… 3 more
Caused by: org.apache.flume.sink.hive.HiveWriter C o n n e c t E x c e p t i o n : F a i l e d c o n n e c t i n g t o E n d P o i n t m e t a S t o r e U r i = ′ t h r i f t : / / ∗ . ∗ . ∗ . ∗ : 908 3 ′ , d a t a b a s e = ′ t e s t d b ′ , t a b l e = ′ c h a t l o g s ′ , p a r t i t i o n V a l s = [ 20200228 ] a t o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e W r i t e r . n e w C o n n e c t i o n ( H i v e W r i t e r . j a v a : 383 ) a t o r g . a p a c h e . f l u m e . s i n k . h i v e . H i v e W r i t e r . < i n i t > ( H i v e W r i t e r . j a v a : 86 ) . . . 6 m o r e C a u s e d b y : c o m . g o o g l e . c o m m o n . u t i l . c o n c u r r e n t . U n c h e c k e d E x e c u t i o n E x c e p t i o n : j a v a . l a n g . R u n t i m e E x c e p t i o n : U n a b l e t o i n s t a n t i a t e o r g . a p a c h e . h i v e . h c a t a l o g . c o m m o n . H i v e C l i e n t C a c h e ConnectException: Failed connecting to EndPoint {metaStoreUri='thrift://*.*.*.*:9083', database='testdb', table='chat_logs', partitionVals=[20200228] } at org.apache.flume.sink.hive.HiveWriter.newConnection(HiveWriter.java:383) at org.apache.flume.sink.hive.HiveWriter.<init>(HiveWriter.java:86) ... 6 more Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: Unable to instantiate org.apache.hive.hcatalog.common.HiveClientCache ConnectException:FailedconnectingtoEndPointmetaStoreUri=′thrift://∗.∗.∗.∗:9083′,database=′testdb′,table=′chatlogs′,partitionVals=[20200228]atorg.apache.flume.sink.hive.HiveWriter.newConnection(HiveWriter.java:383)atorg.apache.flume.sink.hive.HiveWriter.<init>(HiveWriter.java:86)...6moreCausedby:com.google.common.util.concurrent.UncheckedExecutionException:java.lang.RuntimeException:Unabletoinstantiateorg.apache.hive.hcatalog.common.HiveClientCacheCacheableHiveMetaStoreClient
at com.google.common.cache.LocalCache S e g m e n t . g e t ( L o c a l C a c h e . j a v a : 2234 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e . g e t ( L o c a l C a c h e . j a v a : 3965 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache Segment.get(LocalCache.java:2234)atcom.google.common.cache.LocalCache.get(LocalCache.java:3965)atcom.google.common.cache.LocalCacheLocalManualCache.get(LocalCache.java:4764)
at org.apache.hive.hcatalog.common.HiveClientCache.getOrCreate(HiveClientCache.java:292)
at org.apache.hive.hcatalog.common.HiveClientCache.get(HiveClientCache.java:267)
at org.apache.hive.hcatalog.common.HCatUtil.getHiveMetastoreClient(HCatUtil.java:558)
at org.apache.hive.hcatalog.streaming.HiveEndPoint C o n n e c t i o n I m p l . g e t M e t a S t o r e C l i e n t ( H i v e E n d P o i n t . j a v a : 545 ) a t o r g . a p a c h e . h i v e . h c a t a l o g . s t r e a m i n g . H i v e E n d P o i n t ConnectionImpl.getMetaStoreClient(HiveEndPoint.java:545) at org.apache.hive.hcatalog.streaming.HiveEndPoint ConnectionImpl.getMetaStoreClient(HiveEndPoint.java:545)atorg.apache.hive.hcatalog.streaming.HiveEndPointConnectionImpl.(HiveEndPoint.java:312)
at org.apache.hive.hcatalog.streaming.HiveEndPoint$ConnectionImpl.(HiveEndPoint.java:278)
at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnectionImpl(HiveEndPoint.java:215)
at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnection(HiveEndPoint.java:192)
at org.apache.hive.hcatalog.streaming.HiveEndPoint.newConnection(HiveEndPoint.java:105)
at org.apache.flume.sink.hive.HiveWriter$8.call(HiveWriter.java:379)
at org.apache.flume.sink.hive.HiveWriter$8.call(HiveWriter.java:376)
at org.apache.flume.sink.hive.HiveWriter 11. c a l l ( H i v e W r i t e r . j a v a : 428 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1142 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r 11.call(HiveWriter.java:428) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor 11.call(HiveWriter.java:428)atjava.util.concurrent.FutureTask.run(FutureTask.java:266)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:617)
… 1 more
Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hive.hcatalog.common.HiveClientCache$CacheableHiveMetaStoreClient
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:118)
at org.apache.hive.hcatalog.common.HiveClientCache$5.call(HiveClientCache.java:296)
at org.apache.hive.hcatalog.common.HiveClientCache 5. c a l l ( H i v e C l i e n t C a c h e . j a v a : 292 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e 5.call(HiveClientCache.java:292) at com.google.common.cache.LocalCache 5.call(HiveClientCache.java:292)atcom.google.common.cache.LocalCacheLocalManualCache 1. l o a d ( L o c a l C a c h e . j a v a : 4767 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e 1.load(LocalCache.java:4767) at com.google.common.cache.LocalCache 1.load(LocalCache.java:4767)atcom.google.common.cache.LocalCacheLoadingValueReference.loadFuture(LocalCache.java:3568)
at com.google.common.cache.LocalCache S e g m e n t . l o a d S y n c ( L o c a l C a c h e . j a v a : 2350 ) a t c o m . g o o g l e . c o m m o n . c a c h e . L o c a l C a c h e Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache Segment.loadSync(LocalCache.java:2350)atcom.google.common.cache.LocalCacheSegment.lockedGetOrLoad(LocalCache.java:2313)
at com.google.common.cache.LocalCache S e g m e n t . g e t ( L o c a l C a c h e . j a v a : 2228 ) . . . 18 m o r e C a u s e d b y : j a v a . l a n g . r e f l e c t . I n v o c a t i o n T a r g e t E x c e p t i o n a t s u n . r e f l e c t . N a t i v e C o n s t r u c t o r A c c e s s o r I m p l . n e w I n s t a n c e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e C o n s t r u c t o r A c c e s s o r I m p l . n e w I n s t a n c e ( N a t i v e C o n s t r u c t o r A c c e s s o r I m p l . j a v a : 62 ) a t s u n . r e f l e c t . D e l e g a t i n g C o n s t r u c t o r A c c e s s o r I m p l . n e w I n s t a n c e ( D e l e g a t i n g C o n s t r u c t o r A c c e s s o r I m p l . j a v a : 45 ) a t j a v a . l a n g . r e f l e c t . C o n s t r u c t o r . n e w I n s t a n c e ( C o n s t r u c t o r . j a v a : 422 ) a t o r g . a p a c h e . h a d o o p . h i v e . m e t a s t o r e . M e t a S t o r e U t i l s . n e w I n s t a n c e ( M e t a S t o r e U t i l s . j a v a : 1521 ) . . . 28 m o r e C a u s e d b y : j a v a . l a n g . N o S u c h M e t h o d E r r o r : o r g . a p a c h e . h a d o o p . h i v e . m e t a s t o r e . H i v e M e t a S t o r e C l i e n t . < i n i t > ( L o r g / a p a c h e / h a d o o p / h i v e / c o n f / H i v e C o n f ; L o r g / a p a c h e / h a d o o p / h i v e / m e t a s t o r e / H i v e M e t a H o o k L o a d e r ; L j a v a / l a n g / B o o l e a n ; ) V a t o r g . a p a c h e . h i v e . h c a t a l o g . c o m m o n . H i v e C l i e n t C a c h e Segment.get(LocalCache.java:2228) ... 18 more Caused 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:422) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1521) ... 28 more Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(Lorg/apache/hadoop/hive/conf/HiveConf;Lorg/apache/hadoop/hive/metastore/HiveMetaHookLoader;Ljava/lang/Boolean;)V at org.apache.hive.hcatalog.common.HiveClientCache Segment.get(LocalCache.java:2228)...18moreCausedby:java.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)atjava.lang.reflect.Constructor.newInstance(Constructor.java:422)atorg.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1521)...28moreCausedby:java.lang.NoSuchMethodError:org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(Lorg/apache/hadoop/hive/conf/HiveConf;Lorg/apache/hadoop/hive/metastore/HiveMetaHookLoader;Ljava/lang/Boolean;)Vatorg.apache.hive.hcatalog.common.HiveClientCacheCacheableHiveMetaStoreClient.(HiveClientCache.java:409)
… 33 more