Class MetastoreUtil


  • public class MetastoreUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void alterTable​(org.apache.hadoop.hive.metastore.IMetaStoreClient client, java.lang.String databaseName, java.lang.String tblName, org.apache.hadoop.hive.metastore.api.Table table)
      Calls alter_table method using the metastore client.
      static boolean hive3PresentOnClasspath()
      Returns true if Hive3 dependencies are found on classpath, false otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • hive3PresentOnClasspath

        public static boolean hive3PresentOnClasspath()
        Returns true if Hive3 dependencies are found on classpath, false otherwise.
      • alterTable

        public static void alterTable​(org.apache.hadoop.hive.metastore.IMetaStoreClient client,
                                      java.lang.String databaseName,
                                      java.lang.String tblName,
                                      org.apache.hadoop.hive.metastore.api.Table table)
        Calls alter_table method using the metastore client. If possible, an environmental context will be used that turns off stats updates to avoid recursive listing.