我在 Hive Tables 上遇到了一个奇怪的问题。我已经HIVE_HOME在我的环境中设置,它也在我的搜索路径中,所以我可以hive直接调用。
现在我hive从一个目录调用/a/b/c并创建一些表。我可以看到桌子。
现在我切换到一个目录,例如并从那里/a/b调用。hive这是问题部分。要么我看不到表格,要么我收到此错误
hive> show tables;
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
为什么表与hive调用 cli 的目录相关联?任何指针?