1. 程式人生 > >hive 部署需要注意的幾點以及Version information not found 錯誤解決辦法

hive 部署需要注意的幾點以及Version information not found 錯誤解決辦法

安裝HIVE 過程中要注意

1,mysql 是否正常執行

2.   建立好mysql 使用者並分配好相應的訪問許可權以及資料庫埠號等

3.  mysql-connector-java-5.1.26-bin.jar  是否放到hive/lib 目錄下 建議修改許可權為777 (chmod 777 mysql-connector-java-5.1.26-bin.jar)

4.修改conf/hive-site.xml 中的 “hive.metastore.schema.verification”  值為 false  即可解決 “Caused by: MetaException(message:Version information not found in metastore. )” 

5. 除錯 模式命令  hive -hiveconf hive.root.logger=DEBUG,console

<property>
   <name>hive.metastore.schema.verification</name>
   <value>false</value>
    <description>
    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.
    </description>
 </property>