Apache Hadoop · Capability

Apache Hadoop REST APIs — YARN Cluster

Apache Hadoop REST APIs — YARN Cluster. 3 operations. Lead operation: Cluster info. Self-contained Naftiko capability covering one Hadoop business surface.

Run with Naftiko HadoopYARN Cluster

What You Can Do

GET
Getclusterinfo — Cluster info
/v1/ws/v1/cluster/info
GET
Getclustermetrics — Cluster metrics
/v1/ws/v1/cluster/metrics
GET
Getscheduler — Scheduler info
/v1/ws/v1/cluster/scheduler

MCP Tools

cluster-info

Cluster info

read-only idempotent
cluster-metrics

Cluster metrics

read-only idempotent
scheduler-info

Scheduler info

read-only idempotent

Capability Spec

hadoop-yarn-cluster.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache Hadoop REST APIs — YARN Cluster
  description: 'Apache Hadoop REST APIs — YARN Cluster. 3 operations. Lead operation: Cluster info. Self-contained Naftiko
    capability covering one Hadoop business surface.'
  tags:
  - Hadoop
  - YARN Cluster
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HADOOP_API_KEY: HADOOP_API_KEY
capability:
  consumes:
  - type: http
    namespace: hadoop-yarn-cluster
    baseUri: http://{host}:{port}
    description: Apache Hadoop REST APIs — YARN Cluster business capability. Self-contained, no shared references.
    resources:
    - name: ws-v1-cluster-info
      path: /ws/v1/cluster/info
      operations:
      - name: getclusterinfo
        method: GET
        description: Cluster info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: ws-v1-cluster-metrics
      path: /ws/v1/cluster/metrics
      operations:
      - name: getclustermetrics
        method: GET
        description: Cluster metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: ws-v1-cluster-scheduler
      path: /ws/v1/cluster/scheduler
      operations:
      - name: getscheduler
        method: GET
        description: Scheduler info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: hadoop-yarn-cluster-rest
    port: 8080
    description: REST adapter for Apache Hadoop REST APIs — YARN Cluster. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/ws/v1/cluster/info
      name: ws-v1-cluster-info
      description: REST surface for ws-v1-cluster-info.
      operations:
      - method: GET
        name: getclusterinfo
        description: Cluster info
        call: hadoop-yarn-cluster.getclusterinfo
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ws/v1/cluster/metrics
      name: ws-v1-cluster-metrics
      description: REST surface for ws-v1-cluster-metrics.
      operations:
      - method: GET
        name: getclustermetrics
        description: Cluster metrics
        call: hadoop-yarn-cluster.getclustermetrics
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ws/v1/cluster/scheduler
      name: ws-v1-cluster-scheduler
      description: REST surface for ws-v1-cluster-scheduler.
      operations:
      - method: GET
        name: getscheduler
        description: Scheduler info
        call: hadoop-yarn-cluster.getscheduler
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hadoop-yarn-cluster-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache Hadoop REST APIs — YARN Cluster. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: cluster-info
      description: Cluster info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hadoop-yarn-cluster.getclusterinfo
      outputParameters:
      - type: object
        mapping: $.
    - name: cluster-metrics
      description: Cluster metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hadoop-yarn-cluster.getclustermetrics
      outputParameters:
      - type: object
        mapping: $.
    - name: scheduler-info
      description: Scheduler info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hadoop-yarn-cluster.getscheduler
      outputParameters:
      - type: object
        mapping: $.