Integrate Cloud DB for MySQL with external Hive Metastore (optional)

Prev Next

Available in VPC

This guide introduces how to integrate NAVER Cloud Platform Cloud DB for MySQL with Cloud Hadoop's external Hive Metastore.

Preparations

  1. Create a Cloud Hadoop cluster.
  2. Create Cloud DB for MySQL.
    • Make sure to create MySQL 8.0.x version, as integrations are only available in MySQL 8.0.x version
    • For more information on how to create Cloud DB for MySQL, see Cloud DB for MySQL server creation guide.
  3. Set up an ACG.
    • In order to access Cloud DB for MySQL from Cloud Hadoop, enter Cloud Hadoop ACG in the access source of Cloud DB for MySQL ACG and allow all communication ports (1-65535).
      hadoop-vpc-12_pre_vpc_ko
Note

Cloud Hadoop and Cloud DB for MySQL must be created in the same VPC where communication is available.

Caution

Currently, integrations are only available in MySQL 8.0.x version.

External Hive Metastore

Integrate with external Hive Metastore

Hive Metastore server uses DB storage to manage metadata. The default settings are configured to use MySQL installed within Cloud Hadoop.
By using the external Hive Metastore integration method, Cloud DB for MySQL can be used by changing it to the metadata storage in the Hive Metastore server.
You need to check whether there is a Hive Job in progress as the Hive Metastore server is automatically restarted according to the Metastore storage replacement task.
The replacement of metadata storage does not include the transfer of existing metadata.

To change to the external Metastore, follow these steps:

hadoop-vpc-12_connect_vpc_ko

  1. In the NAVER Cloud Platform console VPC environment, go to Menu > Services > Big Data & Analytics > Cloud Hadoop in order.
  2. After selecting a cluster to be integrated from the cluster list, click [Manage clusters] > Integrate with external Hive Metastore
  3. After entering USER_ID and Password, click [Test connection].
    • There may be restrictions on usage depending on the password plugin settings of Cloud DB for MySQL.
      You need to manage and integrate the Cloud DB for MySQL account in accordance with the Cloud Hadoop external Hive Metastore account policy.
  4. After checking whether the test connection is normal, click [Yes].
    • For a successful test connection, you need to perform the following items in advance:
    • After running the test connection, you can check the content of the console message to see whether it was successful.
      • Normal: the connection test result to Cloud DB for MySQL is normal.
      • ACG blocked: access to the DB Server from Cloud Hadoop is blocked. Edit the ACG settings in Cloud DB for MySQL.
      • Incorrect account ID and password: the account ID or password has been entered incorrectly. Enter the correct account name and password.
      • Failure to comply with password restrictions: the user password must contain a minimum of 8 letters and a maximum of 20 letters and must contain at least 1 English uppercase and lowercase letter, special character, and number. Special characters such as ', ", `, |, /, &, +, or space are not allowed.
      • Account DDL not in possession: the account you entered cannot perform DDL commands. Edit the DB permission as DDL.
      • When there is no DB creation procedure in Cloud DB for MySQL, database control is not smooth. Check whether the sys.ncp_create_db procedure is working properly.
      • When Cloud DB for MySQL is already integrated, the requested DB Service is currently integrated with Cloud Hadoop. Select another DB service.
      • When the master node is down: the status of Cloud Hadoop's master node is not normal. A server inspection is needed.
      • Unknown error: contact Customer service.
      • When Hive is deleted from the customer's cluster, Hive is not installed in Cloud Hadoop. Check the cluster.
  5. Once the Hive Metastore integration task starts, the Status field in the cluster list or details becomes Configuring and then displays again as Running once the task is completed.
    hadoop-vpc-12_metastore_vpc_ko