lightning_L

Results 16 comments of lightning_L

Seems we could directly use `UuidUtil.getTimeBasedUuid()` from `org.apache.logging.log4j.core.util.UuidUtil`. https://logging.apache.org/log4j/2.x/log4j-core/apidocs/org/apache/logging/log4j/core/util/UuidUtil.html The doc says that The generated UUID will be unique for approximately 8,925 years so long as less than 10,000 IDs...

I have tested the implementations of those UUID generation method locally. The original usage ensures the most randomness, and the uuid v1 only ensures the uniqueness, and the randomness is...

Reference: https://github.com/apache/hive/blob/9ad5a0b28b136521ded27b4b5418f61b610da788/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java

Reference: https://github.com/apache/hive/blob/9ad5a0b28b136521ded27b4b5418f61b610da788/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpCLIService.java#L241 https://github.com/apache/hive/blob/7b3ecf617a6d46f48a3b6f77e0339fd4ad95a420/itests/hive-unit/src/test/java/org/apache/hive/jdbc/miniHS2/TestHs2ConnectionMetricsHttp.java

> FYI: we shall not introduce scala modules into kyuubi-hive-jdbc. ok....

@pan3793 @turboFei Could you help review the current version of this implementation? Hive beeline has this functionality originally: https://cwiki.apache.org/confluence/display/hive/hiveserver2+clients#HiveServer2Clients-Usingbeeline-site.xmltoautomaticallyconnecttoHiveServer2 It will generate connection URL based on hive-site.xml. (In our case,...

@pan3793 @turboFei Has completed rewriting. Will read connection params from BeelineConf.