简体   繁体   English

Hive 0.11.0 MySQL的Metastore初始化脚本在哪里?

[英]Where is hive 0.11.0 metastore initialization script for mysql?

I am trying to install the metastore in mysql. 我正在尝试在mysql中安装metastore。 When I looked at the source code, there are many sql scripts but they are all upgrades. 当我查看源代码时,有很多sql脚本,但它们都是升级。 Which /where is the start-from-scratch DDL for the metastore? 元存储从头开始的DDL在哪个/哪里?

The cloudera docs have this info (for version 0.10.0): cloudera文档具有此信息(对于版本0.10.0):

mysql> CREATE DATABASE metastore;
mysql> USE metastore;
mysql> SOURCE /usr/lib/hive/scripts/metastore/upgrade/mysql/hive-schema-0.10.0.mysql.sql;

But I do not see anything for version 11.0 但我看不到11.0版的任何内容

So the answer is : The version 0.10.0 "upgrade" script (as shown in OP) is actually the correct one to invoke . 因此答案是:0.10.0版的“升级”脚本(如OP中所示)实际上是要调用的正确脚本。 Although the name is "upgrade" it is used to create the initial schema. 尽管名称是“ upgrade”,但它用于创建初始架构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM