yuanoOo opened a new issue, #4762:
URL: https://github.com/apache/kyuubi/issues/4762

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   create paimon catalog on flink engine failed,when i upgrade kyuubi from 
1.6.0 to 1.7.0.
   
   create paimon catalog success in kyuubi 1.6.0
   create paimon catalog success in fink sql client too
    
   and create paimon catalog without hive conf, also success, like this:
   ```
   CREATE CATALOG `paimon` WITH (
       'type' = 'paimon',
       'warehouse' = 'hdfs://olapCluster/tmp'
   );
   ```
   so this bug may be related to hive
   
   i got following error:
   
   ```
   Caused by: java.lang.RuntimeException: 
org.apache.flink.table.api.ValidationException:Unable to create catalog 
'paimon'.
   
   Catalog options are:
   'metastore'='hive'
   'type'='paimon'
   'uri'='thrift://xxxxx:9083'
   'warehouse'='hdfs://olapCluster/user/hive/warehouse/'
   at 
org.apache.flink.table.factories.FactoryUtil.createCatalog(FactoryUtil.java:431)
 ~[?:?]
           at 
org.apache.flink.table.api.internal.TableEnvironmentImpl.createCatalog(TableEnvironmentImpl.java:1356)
 ~[?:?]
           at 
org.apache.flink.table.api.internal.TableEnvironmentImpl.executeInternal(TableEnvironmentImpl.java:1111)
 ~[?:?]
           at 
org.apache.flink.table.client.gateway.local.LocalExecutor.lambda$executeOperation$3(LocalExecutor.java:209)
 ~[?:?]
           at 
org.apache.flink.table.client.gateway.context.ExecutionContext.wrapClassLoader(ExecutionContext.java:88)
 ~[?:?]
           at 
org.apache.flink.table.client.gateway.local.LocalExecutor.executeOperation(LocalExecutor.java:209)
 ~[?:?]
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_202]
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_202]
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_202]
           at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
           at 
org.apache.kyuubi.reflection.DynMethods$UnboundMethod.invokeChecked(DynMethods.java:59)
 ~[kyuubi-common_2.12-1.7.0.jar:1.7.0]
           at 
org.apache.kyuubi.reflection.DynMethods$UnboundMethod.invoke(DynMethods.java:75)
 ~[kyuubi-common_2.12-1.7.0.jar:1.7.0]
           at 
org.apache.kyuubi.reflection.DynMethods$BoundMethod.invoke(DynMethods.java:175) 
~[kyuubi-common_2.12-1.7.0.jar:1.7.0]
           at 
org.apache.kyuubi.engine.flink.operation.ExecuteStatement.runOperation(ExecuteStatement.scala:162)
 ~[?:?]
           at 
org.apache.kyuubi.engine.flink.operation.ExecuteStatement.executeStatement(ExecuteStatement.scala:93)
 ~[?:?]
   Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
           at 
org.apache.paimon.hive.HiveCatalog.createClient(HiveCatalog.java:559) ~[?:?]
           at org.apache.paimon.hive.HiveCatalog.<init>(HiveCatalog.java:112) 
~[?:?]
           at 
org.apache.paimon.hive.HiveCatalogFactory.create(HiveCatalogFactory.java:76) 
~[?:?]
           at 
org.apache.paimon.catalog.CatalogFactory.createCatalog(CatalogFactory.java:113) 
~[?:?]
           at 
org.apache.paimon.flink.FlinkCatalogFactory.createCatalog(FlinkCatalogFactory.java:68)
 ~[?:?]
           at 
org.apache.paimon.flink.FlinkCatalogFactory.createCatalog(FlinkCatalogFactory.java:58)
 ~[?:?]
           at 
org.apache.paimon.flink.FlinkCatalogFactory.createCatalog(FlinkCatalogFactory.java:32)
 ~[?:?]
           at 
org.apache.flink.table.factories.FactoryUtil.createCatalog(FactoryUtil.java:428)
 ~[?:?]
   Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException:null
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_202]
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_202]
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_202]
           at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
           at 
org.apache.paimon.hive.HiveCatalog.createClient(HiveCatalog.java:551) ~[?:?]
   Caused by: java.lang.RuntimeException: Unable to instantiate 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient
           at 
org.apache.hadoop.hive.metastore.utils.JavaUtils.newInstance(JavaUtils.java:86) 
~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:95)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:148)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:119)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
   Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException:null
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
~[?:1.8.0_202]
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 ~[?:1.8.0_202]
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 ~[?:1.8.0_202]
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
~[?:1.8.0_202]
           at 
org.apache.hadoop.hive.metastore.utils.JavaUtils.newInstance(JavaUtils.java:84) 
~[hive-standalone-metastore-3.1.3.jar:3.1.3]
   Caused by: java.lang.RuntimeException: 
org.apache.hadoop.hive.metastore.api.MetaException:java.lang.NullPointerException
           at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_delegation_token_result$get_delegation_token_resultStandardScheme.read(ThriftHiveMetastore.java)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_delegation_token_result$get_delegation_token_resultStandardScheme.read(ThriftHiveMetastore.java)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_delegation_token_result.read(ThriftHiveMetastore.java)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:86) 
~[libthrift-0.9.3.jar:0.9.3]
           at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_delegation_token(ThriftHiveMetastore.java:4814)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_delegation_token(ThriftHiveMetastore.java:4800)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getDelegationToken(HiveMetaStoreClient.java:2351)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
           at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:211)
 ~[hive-standalone-metastore-3.1.3.jar:3.1.3]
   ```
   
   ### Affects Version(s)
   
   1.7.0
   
   ### Kyuubi Server Log Output
   
   _No response_
   
   ### Kyuubi Engine Log Output
   
   _No response_
   
   ### Kyuubi Server Configurations
   
   _No response_
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   ___sdsad___.kyuubi.engine.type=FLINK_SQL
   flink.execution.target=yarn-session
   #Yarn Session Cluster application id.
   flink.yarn.application.id=application_1679188583928_0071
   ```
   ```
   
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to