当元数据存储停止工作时,使用 mysql 配置单元:
Caused by: org.datanucleus.store.rdbms.exceptions.MissingTableException:
Required table missing : "`VERSION`" in Catalog "" Schema "". DataNucleus
requires this table to perform its persistence operations. Either your
MetaData is incorrect, or you need to enable "datanucleus.autoCreateTables"
Run Code Online (Sandbox Code Playgroud)
设置 autoCreateTables 也不起作用:
<property>
<name>datanucleus.autoCreateTables</name>
<value>True</value>
</property>
Run Code Online (Sandbox Code Playgroud)
那么如何解决这个问题呢?
转到 $HIVE_HOME 并在 schematool 上运行 initschema 选项:
bin/schematool -dbType mysql -initSchema
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6042 次 |
| 最近记录: |