saveExternalHiveMetaStore
    • PDF

    saveExternalHiveMetaStore

    • PDF

    Article Summary

    사용자 계정에 생성된 Cloud DB for MySQL 데이터베이스에 Cloud Hadoop Hive 메타스토어를 연동합니다.

    클러스터당 USER_ID + HOST(IP) 단위로 연동 계정 1개만 추가 가능합니다.

    MySQL 5.7.x 버전에서만 연동이 가능하며, Cloud DB for MySQL 상태가 운영중인 경우만 지원되는 기능입니다.
    TEST CONNECTION 기능 수행 시 hive_*_CHadoop 형태의 데이터베이스가 생성됩니다.
    메타스토어 연동 계정은 DDL 권한만 지원됩니다.

    사전 작업으로 Cloud DB for MySQL ACG에 Cloud Hadoop에서 사용하는 ACG를 추가해주시고 모든 통신(1-65535)을 허용하셔야 정상적인 연동이 가능합니다.

    요청

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    regionCodeNoString- 리전 코드
    - Hive 메타스토어가 연동될 리전(Region)을 결정 가능
    - regionCode는 getRegionList 액션을 통해서 획득 가능
    - Default: getRegionList 조회 결과의 첫 번째 리전을 선택
    cloudHadoopInstanceNoYesString- Cloud Hadoop 인스턴스 번호
    - cloudHadoopInstanceNo는 getCloudHadoopInstanceList 액션을 통해서 획득 가능
    cloudMysqlInstanceNoYesString- Hive 메타스토어를 연동할 Cloud DB for MySQL 인스턴스 번호
    - cloudMysqlInstanceNo는 getCloudHadoopMysqlInstanceList 액션을 통해서 획득 가능
    cloudMysqlUserNameYesString- Hive 메타스토어를 연동할 Cloud DB for MySQL 접근 유저 명
    - cloudMysqlUserName는 getCloudHadoopMysqlUserList 액션을 통해서 획득 가능
    cloudMysqlUserPasswordYesString영어/특수문자/숫자 3개 항목에 대해 1자 이상 포함되어야 함
    ` & + \ " ' / 스페이스 는 패스워드로 사용 불가
    Min: 8
    Max: 20
    - Hive 메타스토어를 연동할 Cloud DB for MySQL 접근 유저 패스워드
    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 개요 참조

    예시

    요청 예시

    GET {API_URL}/saveExternalHiveMetaStore
    ?regionCode=FKR
    &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.