我試圖在樹莓派2上安裝配置單元。我通過解壓縮壓縮的Hive包安裝了Hive,並在我創建的hduser用戶組下手動配置了$ HADOOP_HOME和$ HIVE_HOME。當運行蜂巢,我得到了以下錯誤消息: 蜂巢Hive安裝問題:Hive Metastore數據庫未初始化
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Exception in thread "main" java.lang.RuntimeException: Hive metastore database is not initialized. Please use schematool (e.g. ./schematool -initSchema -dbType ...) to create the schema. If needed, don't forget to include the option to auto-create the underlying database in your JDBC connection string (e.g. ?createDatabaseIfNotExist=true for mysql)
於是我就命令在上面的錯誤信息提示: schematool -dbType德比-initSchema 我得到的錯誤信息:
Error: FUNCTION 'NUCLEUS_ASCII' already exists. (state=X0Y68,code=30000) org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !! * schemaTool failed *
似乎沒有任何有用的信息,當我嘗試谷歌此錯誤在線。有關Hive如何與德比合作的任何幫助或任何解釋,我們將不勝感激!
你有沒有想過解決這個問題? – Newtopian