testConnectExternalHiveMetaStore
    • PDF

    testConnectExternalHiveMetaStore

    • PDF

    Article Summary

    VPC環境で利用できます。

    概要

    ユーザーアカウントに作成された Cloud DB for MySQL (VPC)データベースと Cloud Hadoop Hiveメタストアとの連携可否をテストします。

    クラスタ当たり USER_ID + HOST(IP) 単位で連携アカウント1つのみ追加できます。

    MySQL 5.7.xバージョンでのみ連携でき、Cloud DB for MySQL (VPC)の状態が実行中の場合にのみサポートされる機能です。
    TEST CONNECTION機能実行時に hive_*_CHadoop 形式の databaseが作成されます。
    メタストア連携アカウントは、DDL権限のみサポートされます。

    連携を正常に行うには、事前タスクとして Cloud DB for MySQL (VPC)に Cloud Hadoopで使用する ACGを追加してすべての通信を許可する必要があります。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    regionCodeNoString- リージョンコード
    - Hiveメタストアの連携可否をテストするリージョン(Region)を決定可能
    -regionCodeは、getRegionListアクションを通じて取得可能
    - Default: getRegionList照会結果の最初のリージョンを選択
    cloudHadoopInstanceNoYesString- Cloud Hadoopのインスタンス番号
    - cloudHadoopInstanceNoは、getCloudHadoopInstanceListアクションを通じて取得可能
    cloudMysqlInstanceNoYesString- Hiveメタストアの連携可否をテストする Cloud DB for MySQL (VPC)のインスタンス番号
    - cloudMysqlInstanceNoは、getCloudHadoopMysqlInstanceListアクションを通じて取得可能
    cloudMysqlUserNameYesString- Hiveメタストアの連携可否をテストする Cloud DB for MySQL (VPC)のアクセスユーザー名
    - cloudMysqlUserNameは、getCloudHadoopMysqlUserListアクションを通じて取得可能
    cloudMysqlUserPasswordYesString- Hiveメタストアの連携可否をテストする Cloud DB for MySQL (VPC)のアクセスユーザーパスワード
    - cloudMysqlUserPasswordは、getCloudHadoopMysqlUserListアクションを通じて取得可能
    outputNoString- レスポンス結果のフォーマットタイプ
    - Options: xml | json
    - Default: xml

    呼び出し

    ncloud vhadoop testConnectExternalHiveMetaStore --regionCode KR --cloudHadoopInstanceNo 821***  --cloudMysqlInstanceNo 823*** --cloudMysqlUserName test** --cloudMysqlUserPassword ******
    

    レスポンス

    <testConnectExternalHiveMetaStoreResponse>
        <requestId>65544ec3-8da6-4bf1-9b0c-5957d110bd42</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
    </testConnectExternalHiveMetaStoreResponse>
    

    この記事は役に立ちましたか?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.