2013-11-21 22 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并重新启动,它就可以工作。所以这个错误大多与文件权限问题有关。