hive 终端产生的问题 (Failed to start database 'metastore_db', see the next exception for details.)

来源:互联网 发布:js虚拟数字键盘 编辑:程序博客网 时间:2024/05/22 13:15

转载自:http://blog.csdn.net/shaopeng5211/article/details/8679520


今天使用Hive的时候遇到一个这样的bug,上网查下原来是个小问题,在此记录下 。

FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException: Failed to start database 'metastore_db', see the next exception for details.

NestedThrowables:
java.sql.SQLException: Failed to start database 'metastore_db', see the next exception for details.

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask


原因是在同一个目录下面 开启了2个终端。

而你上次在一个目录进入hive 建立了一张表  下次在另外一个目录下面登录。

则上次建立的表 在这次登录中是无法被发现的。


解决办法就是在同一个目录下操作Hive就OK了。


0 0
原创粉丝点击