啓動hive遇到的一些error

虛擬機環境:

32bitUbuntu14.

hadoop2.6

jdk1.8

hive2.3.4

沒有安裝MySQL使用內置的derby數據庫,也就沒有配置hive-site.xml文件。

 

hive可以正常啓動,進入shell界面,show tables;問題來了

1.Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

->首先進入hive/bin目錄下,執行命令   ./hive --service metastore &

命令行停不下來了

->進入所安裝的Hive的conf目錄,找到hive-site.xml,(若沒修改,則是hive-default.xml.template)。

<property>

  <name>hive.metastore.schema.verification</name>

  <value>true</value>

把true改爲false問題也沒有解決

->嘗試了一下在bin目錄下schematool -dbType derby -initSchema

報錯metastore_db cannot be created

給文件增加權限 sudo chmod -R 777 /usr/local/hive

->重試報錯Error: FUNCTION 'NUCLEUS_ASCII' already exists.

按照網上教程

進入HIVE_HOME/scripts/metastore/upgrade/derby

註釋掉前兩句,還會報別的錯誤,其實bin目錄下已存在metastore_db的文件夾,刪除後初始化成功

show tables;可以正常運行。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章