Hive 3.1.3 API Changes
This topic describes the public API changes that occurred between Hive 2.3.9 EEP 8.1.0 and Hive 3.1.3 EEP 9.0.0.
For more information, see Hive 3.1.3.0 - 2210 (EEP 9.0.0) Release Notes.
JDBC Classes API Changes
This section contains changes made to classes related to the JDBC API in Hive.
- Class
org.apache.hive.jdbc.HiveConnection
-
The following table lists the added methods for Hive.
Method Description List<JdbcConnectionParams> getAllUrls(String zookeeperBasedHS2Url)
Get all direct HiveServer2 URLs from a ZooKeeper based HiveServer2 URL . - Class
org.apache.hive.jdbc.HiveStatement
-
No changes.
- Class
org.apache.hive.jdbc.Utils
-
The following table lists the added methods for Hive.
Method Description public JdbcConnectionParams(JdbcConnectionParams params) {
Constructor: based on connection parameters. public static String getCanonicalHostName(String hostName)
Method to get canonicalized hostname, given a hostname (possibly a CNAME).-
Allows service-principals to use simplified CNAMEs.
-
@param hostName: The hostname to be canonicalized.
-
@return: Given a CNAME, the canonicalized hostname is returned. If not found, the original hostname is returned.
static void configureConnParamsFromZooKeeper(JdbcConnectionParams connParams)
To configure using ZooKeeper. -
Security-related API Changes:
None.
NOTE
- All API functionality changes are compatible with previous versions.
- For migration from ACID (transactional) tables in Hive 2.x to ACID (transactional) tables in Hive 3.x. separate document.
- To learn about known issues related to Hive-3.1.3 database configuration, Data Fabric SASL connection from edge nodes,HPE Ezmeral Data Fabric Object Store data processing with Hive-3.1.3, see Hive 3.1.3.0 - 2210 (EEP 9.0.0) Release Notes.