hive报错Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

参考:https://www.cnblogs.com/zlslch/p/5944887.html

经查找资料发现,需要将hive的配置文件hive-site.xml修改.


    hive.metastore.schema.verification
    true
    Enforce metastore schema version consistency.
        True: Verify that version information stored in metastore matches with one from         Hive jars.  Also disable automatic
        schema migration attempt. Users are required to manully migrate schema after Hive upgrade which ensures
        proper metastore schema migration. (Default)
        False: Warn if the version information stored in metastore doesn't match with one from in Hive jars.
   

改为


    hive.metastore.schema.verification
    false
    Enforce metastore schema version consistency.
        True: Verify that version information stored in metastore matches with one from         Hive jars.  Also disable automatic
        schema migration attempt. Users are required to manully migrate schema after Hive upgrade which ensures
        proper metastore schema migration. (Default)
        False: Warn if the version information stored in metastore doesn't match with one from in Hive jars.
   

true=>false

你可能感兴趣的:(Hive,hv)