createCloudHadoopInstance
    • PDF

    createCloudHadoopInstance

    • PDF

    기사 요약

    개요

    CloudHadoop 클러스터 생성합니다.

    요청

    요청 헤더

    공통 가이드 참조

    요청 바디

    API Parameter NameParameter 설명필수 여부Default ValueAvailable ValuesData Type
    zoneNozone번호N2[2] for KR-1 ZoneString
    regionNoregion번호N1[1] for KR RegionString
    cloudHadoopClusterNamecloud hadoop cluster 이름Y String
    cloudHadoopImageProductCodecloud hadoop이미지상품코드Y 아래 테이블 참조String
    cloudHadoopClusterTypeCodecloud hadoop Cluster 유형코드Y [CHADP]Core Hadoop, [HBASE] Hbase, [SPARK] Spark, [PRESTO] PrestoString
    cloudHadoopAdminNamecloud hadoop 관리자이름Y String
    cloudHadoopAdminPasswordcloud hadoop 관리자패스워드Y String
    loginKeyName로그인키명Y String
    bucketName버킷이름Y String
    masterNodeProductCode마스터노드상품코드Y 아래 테이블 참조String
    masterNodeCount마스터노드 개수N22개 고정Integer
    workerNodeProductCode작업자노드상품코드Y 아래 테이블 참조String
    workerNodeCount작업자노드 개수N2MIN: 2, MAX: 8Integer
    edgeNodeProductCode엣지노드상품코드YCloud Hadoop 1.2 일때만 적용, 아래 테이블 참조String
    edgeNodeCount엣지노드개수N1Cloud Hadoop 1.2 일때만 적용, 1개 고정Integer
    masterNodeStorageTypeCode마스터노드스토리지 타입코드YSSD, HDD 중 선택String
    masterNodeStorageSize마스터노드스토리지 사이즈Y100 ~ 2000 사이이며 10의 배수Integer
    workerNodeStorageTypeCode작업자노드스토리지 타입코드YSSD, HDD 중 선택String
    workerNodeStorageSize작업자노드스토리지 사이즈Y100 ~ 2000 사이이며 10의 배수Integer
    responseFormatType응답포맷타입NXMLXML,JSON Type 선택String
    • cloudHadoopImageProductCode
    Product CodeProduct NameProduct TypeDescription
    SPSWCHADPLINUX01Cloud Hadoop 1.0LINUXCentOS 7.3 with Cloud Hadoop 1.0
    SPSWCHADPLINUX02Cloud Hadoop 1.1LINUXCentOS 7.3 with Cloud Hadoop 1.1
    SPSWCHADPLINUX03Cloud Hadoop 1.2LINUXCentOS 7.3 with Cloud Hadoop 1.2
    • masterNodeProductCode, workerNodeProductCode
    Product CodeProduct Name
    SPSVRCHADP000001vCPU 4EA, Memory 8GB
    SPSVRCHADP000002vCPU 4EA, Memory 16GB
    SPSVRCHADP000003vCPU 8EA, Memory 16GB
    SPSVRCHADP000004vCPU 8EA, Memory 32GB
    SPSVRCHADP000005vCPU 16EA, Memory 32GB
    SPSVRCHADP000006vCPU 4EA, Memory 32GB
    SPSVRCHADP000007vCPU 8EA, Memory 64GB
    SPSVRCHADP000008vCPU 16EA, Memory 128GB
    SPSVRCHADP000009vCPU 32EA, Memory 256GB
    • edgeNodeProductCode
    Product CodeProduct Name
    SPSVRCHADP000010vCPU 4EA, Memory 8GB
    SPSVRCHADP000011vCPU 4EA, Memory 16GB
    SPSVRCHADP000012vCPU 8EA, Memory 16GB
    SPSVRCHADP000013vCPU 8EA, Memory 32GB
    SPSVRCHADP000015vCPU 4EA, Memory 32GB

    응답

    Success

    {
        "createCloudHadoopInstanceResponse": {
            "requestId": "<api-call-request-id>",
            "returnCode": "0",
            "returnMessage": "success",
            "totalRows": <response-리스트-길이>,
            "cloudHadoopInstanceList": [
                {
                    "cloudHadoopInstanceNo": "<클러스터-id>",
                    "cloudHadoopClusterName": "<클러스터-이름>",
                    "cloudHadoopImageProductCode": "<클러스터에-설치된-이미지-코드>",
                    "cloudHadoopClusterType": {
                        "code": "<클러스터-타입-코드>",
                        "codeName": "<클러스터-타입-이름>"
                    },
                    "masterNodeCpuCount": <마스터노드-cpu-수>,
                    "masterNodeCount": <마스터노드-인스턴스-수>,
                    "masterNodeMemorySize": <마스터노드-메모리(Byte)>,
                    "workerNodeCpuCount": <워커노드-cpu-수>,
                    "workerNodeCount": <워커노드-인스턴스-수>,
                    "workerNodeMemorySize": <워커노드-메모리(Byte)>,
                    "cloudHadoopInstanceOperation": {
                        "code": "<클러스터-작업-코드>",
                        "codeName": "<클러스터-작업-이름>"
                    },
                    "cloudHadoopInstanceStatus": {
                        "code": "<클러스터-상태-코드>",
                        "codeName": "<클러스터-상태-이름>"
                    },
                    "cloudHadoopInstanceStatusName": "<클러스터-상태-이름>",
                    "publicDnsName": "<공인-domain-name>",
                    "publicIp": "<공인-ip>",
                    "isHa": <HA구성-여부>,
                    "zone": {
                        "zoneNo": "<Zone-id>",
                        "zoneName": "<Zone-이름>",
                        "zoneCode": "<Zone-코드>",
                        "zoneDescription": "<Zone-설명>",
                        "regionNo": "<Region-id>"
                    },
                    "region": {
                        "regionNo": "<Region-id>",
                        "regionCode": "<Region-코드>",
                        "regionName": "<Region-이름>"
                    },
                    "masterNodeServerName": "",
                    "createDate": "<생성-날짜>",
                    "dataArchitecture": "<",
                    "bucketName": "<object-storage-이름>",
                    "directConnectionAccount": "<서버-접속-계정>",
                    "loginKeyName": "<인증-pem-키-이름>",
                    "accessControlGroupList": [
                        {
                            "accessControlGroupConfigurationNo": "<ACG-id>",
                            "accessControlGroupName": "<ACG-이름>",
                            "accessControlGroupDescription": "<ACG-설명>",
                            "isDefault": <사용자-default-ACG-여부>,
                            "createDate": "<ACG-생성-시각>"
                        }
                    ]
                }
            ]
        }
    }
    

    Authentication failed

    {
        "error": {
            "errorCode": "<리턴-코드>",
            "message": "<리턴-메시지>"
        }
    }
    

    Bad Parameter

    {
        "responseError": {
            "returnCode": "<리턴-코드>",
            "returnMessage": "<리턴-메시지>"
        }
    }
    

    예시

    요청 예시

    curl -d '{"cloudHadoopClusterName":"cluster-01", "cloudHadoopImageProductCode":"SPSWCHADPLINUX02", \
        "cloudHadoopClusterTypeCode":'CHADP', \
        "cloudHadoopAdminName":'admin', "cloudHadoopAdminPassword":'admin^password', \
        "loginKeyName":'user-dev-key', "bucketName":"user-bucket", \
        "masterNodeProductCode":'SPSVRCHADP000001', "workerNodeProductCode":'SPSVRCHADP000001', \
        "masterNodeStorageTypeCode":"ssd", "masterNodeStorageSize":100, \
        "workerNodeStorageTypeCode":"ssd","workerNodeStorageSize":100, \
        "responseFormatType":"json"}'
       -H "content-type:application/x-www-form-urlencoded"
       -H "accept:application/json"
       -H "x-ncp-apigw-timestamp:1505290625682" \
       -H "x-ncp-iam-access-key:D78BB444D6D3C84CA38A" \
       -H "x-ncp-apigw-signature-v2:WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=" \
       -X POST https://ncloud.apigw.gov-ntruss.com/hadoop/v2/createCloudHadoopInstanceResponse \
    

    응답 예시

    {
        "createCloudHadoopInstanceResponse": {
            "requestId": "a4d67aee-fef6-4cb4-bf80-63c9763a1a76",
            "returnCode": "0",
            "returnMessage": "success",
            "totalRows": 1,
            "cloudHadoopInstanceList": [
                {
                    "cloudHadoopInstanceNo": "1137409",
                    "cloudHadoopClusterName": "cluster-01",
                    "cloudHadoopClusterType": {
                        "code": "CHADP",
                        "codeName": "Core Hadoop"
                    },
                    "masterNodeCpuCount": 4,
                    "masterNodeCount": 2,
                    "masterNodeMemorySize": 8589934592,
                    "workerNodeCpuCount": 4,
                    "workerNodeCount": 4,
                    "workerNodeMemorySize": 8589934592,
                    "cloudHadoopInstanceOperation": {
                        "code": "CREAT",
                        "codeName": "Cloud Hadoop CREATE OP"
                    },
                    "cloudHadoopInstanceStatus": {
                        "code": "INIT",
                        "codeName": "Cloud Hadoop INIT State"
                    },
                    "cloudHadoopInstanceStatusName": "creating",
                    "isHa": true,
                    "zone": {
                        "zoneNo": "3",
                        "zoneName": "KR-2",
                        "zoneCode": "KR-2",
                        "zoneDescription": "\ud3c9\ucd0c zone",
                        "regionNo": "1"
                    },
                    "region": {
                        "regionNo": "1",
                        "regionCode": "KR",
                        "regionName": "Korea"
                    },
                    "masterNodeServerName": "m-001-cluster-01-hd",
                    "createDate": "2018-12-21T18:50:34+0900",
                    "dataArchitecture": "Object Storage",
                    "bucketName": "user-bucket",
                    "directConnectionAccount": "sshuser",
                    "loginKeyName": "user-dev-key",
                    "accessControlGroupList": [
                        {
                            "accessControlGroupConfigurationNo": "75554",
                            "accessControlGroupName": "cloud-hadoop-odmp",
                            "accessControlGroupDescription": "Group for Cloud Hadoop cluster 'cluster-01' (automatically created)",
                            "isDefault": false,
                            "createDate": "2018-12-21T18:50:35+0900"
                        }
                    ]
                }
            ]
        }
    }
    

    이 문서가 도움이 되었습니까?

    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.