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.
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
大家使用hive的时候 经常会产生以上的问题
原因是在同一个目录下面 开启了2个终端。
而你上次在一个目录进入hive 建立了一张表 下次在另外一个目录下面登录。
则上次建立的表 在这次登录中是无法被发现的、
要是解决这个问题,需正确配置数据库的连接,不然默认情况下使用的 deby数据库。