Apache Pig · JSON Structure

Apache Pig Job Request Structure

JobRequest schema from Apache Pig

Type: object Properties: 4 Required: 1
Big DataData AnalysisETLHadoopScriptingApacheOpen Source

JobRequest is a JSON Structure definition published by Apache Pig, describing 4 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

script name executionEngine parameters

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-pig/refs/heads/main/json-structure/apache-pig-job-request-structure.json",
  "description": "JobRequest schema from Apache Pig",
  "type": "object",
  "properties": {
    "script": {
      "type": "string",
      "description": "Pig Latin script content",
      "example": "A = LOAD 'data.csv' USING PigStorage(',');\nB = FILTER A BY $0 > 100;\nSTORE B INTO 'output';"
    },
    "name": {
      "type": "string",
      "description": "Job name",
      "example": "sales-analysis"
    },
    "executionEngine": {
      "type": "string",
      "enum": [
        "mapreduce",
        "tez",
        "local"
      ],
      "default": "tez"
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Script parameters as key-value pairs"
    }
  },
  "required": [
    "script"
  ],
  "name": "JobRequest"
}