get-hadoop-cluster-info

Prev Next

VPC 환경에서 이용 가능합니다.

Data Box의 Hadoop 클러스터 정보를 조회합니다.

요청

요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

메서드 URI
GET /api/v1/data-box/get-hadoop-cluster-info

요청 헤더

Data Box Frame API에서 공통으로 사용하는 헤더에 대한 정보는 Data Box Frame 요청 헤더를 참조해 주십시오.

요청 쿼리 파라미터

요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
dataBoxFrameNo Integer Required Data Box Frame 번호
dataBoxNo Integer Required Data Box 번호
instanceNo Integer Required Hadoop 클러스터 번호
  • get-data-box-infra-list 참조
  • 동일 Data Box의 Hadoop Edge, Hadoop Master, Hadoop Worker 노드 타입은 인스턴스 번호 모두 동일

요청 예시

요청 예시는 다음과 같습니다.

curl --location --request GET 'https://databoxframe.apigw.ntruss.com/api/v1/data-box/get-hadoop-cluster-info?dataBoxFrameNo=83&dataBoxNo=381&instanceNo=*********' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' 

응답

응답 형식을 설명합니다.

응답 바디

응답 바디에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
specList Array - Hadoop Cluster 노드 정보 목록
connectionList Array - 접속 정보 목록
storageList Array - NAS 스토리지 정보 목록

specList

specList에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
name String - Hadoop 클러스터 노드 타입
spec String - 노드 서버 스펙 이름
nodeCount Integer - 노드 서버 개수

connectionList

connectionList에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
applicationName String - 접속 대상 애플리케이션 이름
connectionUrl String - 애플리케이션 접속 URL

storageList

storageList에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
name String - NAS 스토리지 이름
storagePath String - NAS의 마운트 경로

응답 상태 코드

Data Box Frame API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Data Box Frame API 응답 상태 코드를 참조해 주십시오.

응답 예시

응답 예시는 다음과 같습니다.

{
    "specList": [
        {
            "name": "Hadoop Edge",
            "spec": "Hadoop Linux Server (C8-H1 : 8vCPU 16GB Mem)",
            "nodeCount": 1
        },
        {
            "name": "Hadoop Master",
            "spec": "Hadoop Linux Server (C8-H1 : 8vCPU 16GB Mem)",
            "nodeCount": 2
        },
        {
            "name": "Hadoop Worker",
            "spec": "Hadoop Linux Server (C8-H1 : 8vCPU 16GB Mem)",
            "nodeCount": 2
        }
    ],
    "connectionList": [
        {
            "applicationName": "Ambari",
            "connectionUrl": "https://***.***.***.***:8443"
        },
        {
            "applicationName": "Hue",
            "connectionUrl": "https://***.***.***.***:8081"
        },
        {
            "applicationName": "Zeppelin",
            "connectionUrl": "https://***.***.***.***:9996"
        }
    ],
    "storageList": [
        {
            "name": "NAS for export",
            "storagePath": "/mnt/nasw381n1"
        }
    ]
}