lhh1522 opened a new pull request #609: 用impala创建表名与kudu中相同的表时,在hive-jdbc中使用metaData的getColumn()方法报错 URL: https://github.com/apache/hive/pull/609 我有两个数据库(test1,test2),我使用Impala在test1中创建一张表tb_test,并stored as kudu,在test2中创建另一张同名表tb_test,然后使用hive-jdbc查看test2中tb_test的表结构时报错 代码: ResultSet rs = meta.getColumns(null, "%", table_name, "%"); 报错信息: org.apache.hive.service.cli.HiveSQLException: MetaException(message:java.lang.ClassNotFoundException Class not found) at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231) at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:222) at org.apache.hive.jdbc.HiveDatabaseMetaData.getColumns(HiveDatabaseMetaData.java:220) at com.zzjunzhi.ivsmgr.restful.service.impl.DataSourceServiceImpl.getTableStruct(DataSourceServiceImpl.java:598) at com.zzjunzhi.ivsmgr.restful.service.impl.DataSourceServiceImpl.queryTables(DataSourceServiceImpl.java:843) at com.zzjunzhi.ivsmgr.restful.service.impl.DataSourceServiceImpl.getTables(DataSourceServiceImpl.java:421) at com.zzjunzhi.ivsmgr.restful.service.impl.DataSourceServiceImpl.main(DataSourceServiceImpl.java:1394) Caused by: org.apache.hive.service.cli.HiveSQLException: MetaException(message:java.lang.ClassNotFoundException Class not found) at org.apache.hive.service.cli.operation.GetColumnsOperation.runInternal(GetColumnsOperation.java:174) at org.apache.hive.service.cli.operation.Operation.run(Operation.java:337) at org.apache.hive.service.cli.session.HiveSessionImpl.getColumns(HiveSessionImpl.java:570) at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1917) at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) at com.sun.proxy.$Proxy21.getColumns(Unknown Source) at org.apache.hive.service.cli.CLIService.getColumns(CLIService.java:358) at org.apache.hive.service.cli.thrift.ThriftCLIService.GetColumns(ThriftCLIService.java:591) at org.apache.hive.service.cli.thrift.TCLIService$Processor$GetColumns.getResult(TCLIService.java:1433) at org.apache.hive.service.cli.thrift.TCLIService$Processor$GetColumns.getResult(TCLIService.java:1418) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56) at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: MetaException(message:java.lang.ClassNotFoundException Class not found) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_schema_with_environment_context_result$get_schema_with_environment_context_resultStandardScheme.read(ThriftHiveMetastore.java:28812) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_schema_with_environment_context_result$get_schema_with_environment_context_resultStandardScheme.read(ThriftHiveMetastore.java:28779) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_schema_with_environment_context_result.read(ThriftHiveMetastore.java:28705) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:86) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_schema_with_environment_context(ThriftHiveMetastore.java:1058) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_schema_with_environment_context(ThriftHiveMetastore.java:1043) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getSchema(HiveMetaStoreClient.java:1610) at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.getSchema(SessionHiveMetaStoreClient.java:284) at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:105) at com.sun.proxy.$Proxy20.getSchema(Unknown Source) at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient$SynchronizedHandler.invoke(HiveMetaStoreClient.java:2134) at com.sun.proxy.$Proxy20.getSchema(Unknown Source) at org.apache.hive.service.cli.operation.GetColumnsOperation.runInternal(GetColumnsOperation.java:137) ... 24 more
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
