【发布时间】:2013-06-21 01:30:30
【问题描述】:
我在使用 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 的目录?有什么指点吗?
【问题讨论】:
-
请验证以下链接,它可能会有所帮助。 stackoverflow.com/questions/10735843/…>
-
@RamanaUppala,不,不是同一个问题。
-
当 hive 从同一目录启动时,表在目录中可见。但从其他目录启动 hive 时不可见
-
参考拉玛那给出的解决方案解决