saveExternalHiveMetaStore

Prev Next

Available in VPC

Integrate a Cloud Hadoop Hive metastore with Cloud DB for MySQL.

Syntax

The saveExternalHiveMetaStore syntax is as follows:

./ncloud vhadoop saveExternalHiveMetaStore \
    --cloudHadoopInstanceNo <cloud-hadoop-instance-no> \
    --cloudMysqlInstanceNo <cloud-mysql-instance-no> \
    --cloudMysqlUserName <cloud-mysql-user-name> \
    --cloudMysqlUserPassword <cloud-mysql-user-password> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running saveExternalHiveMetaStore.

Required options

The following options are required for saveExternalHiveMetaStore.

Options Type Required Description
--cloudHadoopInstanceNo String Required Cluster instance number
--cloudMysqlInstanceNo String Required Cloud DB for MySQL instance number
--cloudMysqlUserName String Required Database user ID
--cloudMysqlUserPassword String Required Database user account password
  • Enter 8-20 characters, including English letters, numbers, and special characters.
  • The special characters ' " ` & + / \ and spaces can't be used.

Common options

For information about the options common to all vhadoop subcommands, see Cloud Hadoop (VPC) options.

Examples

If the Hive metastore integration request is successful, the result of the request is returned.

Command

The command example is as follows:

./ncloud vhadoop saveExternalHiveMetaStore \
    --cloudHadoopInstanceNo 34567890 \
    --cloudMysqlInstanceNo 56789012 \
    --cloudMysqlUserName hiveuser \
    --cloudMysqlUserPassword Examplepw123! \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "saveExternalHiveMetaStoreResponse": {
    "requestId": "3a4b5c6d-1e2f-0789-3456-abcdef0789ab",
    "returnCode": "0",
    "returnMessage": "success"
  }
}