【问题标题】:hive metastore with external mysql does not work带有外部 mysql 的配置单元元存储不起作用
【发布时间】:2020-01-07 23:30:23
【问题描述】:

我试图让我的外部 mysql 用作 Ambari 中的配置单元元存储。这些是我遵循的步骤

- Started a HDInsight in Azure
- create a mysql database
- create a database 'metastore' and a user 'hive' in mysql
- source 'Ambari-DDL-AzureDB-CREATE.sql' to create schema in metastore db
- changed the mysql connection in hive config using Amabri UI
- Tested the mysql connection and it was connected

当我重新启动 hive 的 metastore 服务时,它失败并出现错误 "在 Metastore 数据库中找不到表 'DBS' 和 'Version'。

当我检查 Metastore 数据库时,它没有这些表。 如何创建这些表?

我在这里错过了什么

【问题讨论】:

    标签: mysql hive azure-hdinsight ambari


    【解决方案1】:

    它使用 hive schematool 工作。

    【讨论】:

    • 您可以接受这个作为答案。这对其他社区成员可能是有益的。谢谢
    • 您可以接受它作为答案(单击答案旁边的复选标记,将其从灰色切换为已填充。)。
    • 太棒了。祝你有美好的一天。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-21
    • 1970-01-01
    • 1970-01-01
    • 2016-08-13
    • 1970-01-01
    相关资源
    最近更新 更多