{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/apache-hive/json-schema/hive-webhcat-job-schema.json",
  "title": "Job",
  "type": "object",
  "description": "WebHCat Hive job submission",
  "properties": {
    "id": {
      "type": "string",
      "description": "Job ID",
      "example": "job_1718153645993_0001"
    },
    "status": {
      "type": "string",
      "description": "Job status",
      "example": "RUNNING"
    },
    "percentComplete": {
      "type": "string",
      "description": "Job completion percentage",
      "example": "50% complete"
    },
    "query": {
      "type": "string",
      "description": "HiveQL query string",
      "example": "SELECT COUNT(*) FROM sales"
    },
    "database": {
      "type": "string",
      "description": "Target database",
      "example": "mydb"
    },
    "statusdir": {
      "type": "string",
      "description": "HDFS directory for output and status",
      "example": "/tmp/hive-output"
    }
  }
}