get-hadoop-cluster-info

Prev Next

VPC環境で利用できます。

Boxの Hadoopクラスタ情報を照会します。

リクエスト

リクエスト形式を説明します。リクエスト形式は次の通りです。

メソッド URI
GET /api/v1/box/get-hadoop-cluster-info

リクエストヘッダ

Datafence APIで共通して使用されるヘッダの詳細は、Datafenceのリクエストヘッダをご参照ください。

リクエストクエリパラメータ

リクエストクエリパラメータの説明は次の通りです。

フィールド タイプ 必須の有無 説明
fenceId Integer Required Datafence番号
boxId Integer Required Box番号
hadoopClusterNo Integer Required Hadoopクラスタ番号

リクエスト例

リクエストのサンプルコードは次の通りです。

curl --location --request GET 'https://datafence.apigw.ntruss.com/api/v1/box/get-hadoop-cluster-info?fenceId=26&boxId=74&hadoopClusterNo=*********' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

レスポンス

レスポンス形式を説明します。

レスポンスボディ

レスポンスボディの説明は次の通りです。

フィールド タイプ 必須の有無 説明
connectionList Array - Hadoopクラスタアプリケーション情報
nodeSpecList Array - Hadoopノード情報
storageList Array - Hadoopクラスタストレージ情報

connectionList

connectionListの説明は次の通りです。

フィールド タイプ 必須の有無 説明
applicationName String - Hadoopクラスタアプリケーション名
connectionUrl String - アプリケーション接続 URL

nodeSpecList

nodeSpecListの説明は次の通りです。

フィールド タイプ 必須の有無 説明
name String - Hadoopクラスタノードタイプ
spec String - ノードスペック名
nodeCount Integer - ノードサーバ数

storageList

storageListの説明は次の通りです。

フィールド タイプ 必須の有無 説明
name String - NASストレージ名
storagePath String - マウントのパス

レスポンスステータスコード

Datafence APIで共通して使用されるレスポンスステータスコードの詳細は、Datafence APIのレスポンスステータスコードをご参照ください。

レスポンス例

レスポンスのサンプルコードは次の通りです。

{
    "connectionList": [
        {
            "applicationName": "Ambari",
            "connectionUrl": "https://10.0.0.75:8443/ambari"
        }
    ],
    "nodeSpecList": [
        {
            "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
        }
    ],
    "storageList": [
        {
            "name": "持ち出し申請用 NAS",
            "storagePath": "/mnt/74box1"
        }
    ]
}