commit 52d48855e4a5a49dd4fbf5ea0104b0a51d5e5742 Author: Xiaomeng Zhang Date: Fri Jun 16 13:41:42 2017 -0700 HIVE-16914 Change HiveMetaStoreClient to AutoCloseable diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index b99f40a..4c96532 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -90,7 +90,7 @@ */ @Public @Unstable -public class HiveMetaStoreClient implements IMetaStoreClient { +public class HiveMetaStoreClient implements IMetaStoreClient, AutoCloseable { /** * Capabilities of the current client. If this client talks to a MetaStore server in a manner * implying the usage of some expanded features that require client-side support that this client