saveExternalHiveMetaStore
    • PDF

    saveExternalHiveMetaStore

    • 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 形式のデータベースが作成されます。
    メタストア連携アカウントは、DDL権限のみサポートされます。

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

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    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英字/記号/数字の3つの項目のうち1文字以上含むこと
    ` & + \ " ' / スペースは、パスワードに使用不可
    Min: 8
    Max: 20
    - Hiveメタストアを連携する Cloud DB for MySQL (VPC)のアクセスユーザーパスワード
    responseFormatTypeNoString- レスポンス結果のフォーマットタイプ
    - Options: xml | json
    - Default: xml

    リクエストボディ

    {
      "regionCode": "string",
      "cloudHadoopInstanceNo": "string",
      "cloudMysqlInstanceNo": "string",
      "cloudMysqlUserName": "string",
      "cloudMysqlUserPassword": "string",
      "responseFormatType": "string"
    }
    

    レスポンス

    レスポンスボディ

    {
      "saveExternalHiveMetaStoreResponse": {
        "requestId": "string",
        "returnCode": "string",
        "returnMessage": "string"
      }
    }
    

    エラーコード

    Cloud Hadoop(VPC) の概要を参照

    リクエスト例

    GET {API_URL}/saveExternalHiveMetaStore
    ?regionCode=KR
    &cloudHadoopInstanceNo=821*** 
    &cloudMysqlInstanceNo=823***
    &cloudMysqlUserName=test**
    &cloudMysqlUserPassword=******
    

    レスポンス例

    {
      "saveExternalHiveMetaStoreResponse": {
        "requestId": "7b3e5aee-6b86-4d47-a5c0-36c0f7a932bd",
        "returnCode": "0",
        "returnMessage": "success"
      }
    }
    
    <saveExternalHiveMetaStoreResponse>
        <requestId>65544ec3-8da6-4bf1-9b0c-5957d110bd42</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
    </saveExternalHiveMetaStoreResponse>
    

    エラーコード例

    {
      "responseError": {
        "returnCode": "5001352",
        "returnMessage": "The CloudHadoop cluster is already linked to CDB for MySQL products."
      }
    }
    

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

    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.