You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "honghao (JIRA)" <ji...@apache.org> on 2019/04/26 08:36:00 UTC

[jira] [Created] (HIVE-21653) 用impala创建表名与kudu中相同的表时,在hive-jdbc中使用metaData的getColumn()方法报错

honghao created HIVE-21653:
------------------------------

             Summary: 用impala创建表名与kudu中相同的表时,在hive-jdbc中使用metaData的getColumn()方法报错
                 Key: HIVE-21653
                 URL: https://issues.apache.org/jira/browse/HIVE-21653
             Project: Hive
          Issue Type: Bug
            Reporter: honghao


我有两个数据库(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 message was sent by Atlassian JIRA
(v7.6.3#76005)