public class HiveJdbcParameterUtils extends Object
Hive JDBC allows users to configure the session during the open session by setting values in its jdbc URL. The syntax is
jdbc:hive2://host1:port1,host2:port2/dbName;initFile=file;sess_var_list?hive_conf_list#hive_var_list
For different parts in the URL, HiveConnection
encodes different parts with different
prefix and store them into the configuration.
Constructor and Description |
---|
HiveJdbcParameterUtils() |
Modifier and Type | Method and Description |
---|---|
static Optional<String> |
getUsedDefaultDatabase(Map<String,String> parameters) |
static void |
setVariables(HiveConf hiveConf,
Map<String,String> sessionConfigs,
Map<String,String> parameters)
Use the to set or according to
what kinds of the parameter belongs.
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.