MENU
      testConnectExternalHiveMetaStore
        • PDF

        testConnectExternalHiveMetaStore

        • PDF

        記事の要約

        最新のコンテンツが反映されていません。早急にアップデート内容をご提供できるよう努めております。最新のコンテンツ内容は韓国語ページをご参照ください。

        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) ACGに 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英字/記号/数字の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"
        }
        JSON

        レスポンス

        レスポンスボディ

        {
          "testConnectExternalHiveMetaStoreResponse": {
            "requestId": "string",
            "returnCode": "string",
            "returnMessage": "string"
          }
        }
        JSON

        エラーコード

        Cloud Hadoop(VPC) の概要を参照

        リクエスト例

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

        レスポンス例

        {
          "testConnectExternalHiveMetaStoreResponse": {
            "requestId": "668a5ab5-ee01-4340-86ac-625948079674",
            "returnCode": "0",
            "returnMessage": "success"
          }
        }
        JSON
        <testConnectExternalHiveMetaStoreResponse>
            <requestId>65544ec3-8da6-4bf1-9b0c-5957d110bd42</requestId>
            <returnCode>0</returnCode>
            <returnMessage>success</returnMessage>
        </testConnectExternalHiveMetaStoreResponse>
        XML

        エラーコード例

        {
          "responseError": {
            "returnCode": "5001342",
            "returnMessage": "The access to the DB server from Cloud Hadoop is blocked. Modify the ACG settings of Cloud DB for MySQL."
          }
        }
        JSON
        {
          "responseError": {
            "returnCode": "5001343",
            "returnMessage": "The account or password was entered incorrectly. Enter the correct account and password."
          }
        }
        JSON

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

        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.