2013-11-21 27 views
2

我使用蜂巢0.11 Metastore以本地模式。當我嘗試啓動Metastore守護程序時,它在吐出以下錯誤消息後退出:蜂巢Metastore嘗試創建一個德比連接,而不是MySQL的

2013-11-21 08:47:19.541 GMT線程[main,5,main] java.io.FileNotFoundException:derby.log (拒絕授權)

2013年11月21日08:47:19.646 GMT螺紋[主,5,主]清理動作開始

ERROR XBM0H:目錄/ metastore_db無法創建。

這是我的hive-site.xml。我使用MySQL作爲Metastore存儲。我不明白的是Hive爲什麼試圖在本地創建metastore_db。

謝謝。

回答

-1

設置hive.metastore.local財產false。 (已移除蜂巢0.10:如果hive.metastore.uris是假定空的本地模式,遠程否則)

設置hive.metastore.uris財產與有效的URI(主機和端口節儉metastore服務器)

對於如:

<property> 
    <name>hive.metastore.uris</name> 
    <value>thrift://hap-db:9083</value> 
    <description>IP address (or fully-qualified domain name) and port of the metastore host</description> 
</property> 
+0

蘇雷什,我使用的版本0.11蜂房。所以我沒有配置文件中的hive.metastore.local參數。 hive.metastore.uris參數是以本地模式爲Metastore設置的。所以我保留了thrift的值://0.0.0.0:9083。我也試着評論這個參數。蜂巢仍然去德比。 – devj

-3

嗨在蜂巢0.14面臨類似的問題。我以root用戶的身份安裝了配置單元,並嘗試運行配置單元服務,作爲我用於所有hadoop作業的sudo用戶。 一旦我將安裝所有者更改爲sudo並重新啓動,它就可以工作。所以這個錯誤大多與文件權限問題有關。