- [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/PigJob#SCHEMA_REPRESENTATION)

A Dataproc job for running [Apache Pig](https://pig.apache.org/) queries on YARN.

| JSON representation |
|---|
| ``` { "continueOnFailure": boolean, "scriptVariables": { string: string, ... }, "properties": { string: string, ... }, "jarFileUris": [ string ], "loggingConfig": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/LoggingConfig`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "queryFileUri": string, "queryList": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/QueryList`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `continueOnFailure` | `boolean` Optional. Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries. |
| `scriptVariables` | `map (key: string, value: string)` Optional. Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`). An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `properties` | `map (key: string, value: string)` Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API might be overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`, /etc/pig/conf/pig.properties, and classes in user code. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `jarFileUris[]` | `string` Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. |
| `loggingConfig` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/LoggingConfig`)`` Optional. The runtime log config for job execution. |
| Required. The sequence of Pig queries to execute, specified as an HCFS file URI or a list of queries. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `queryFileUri` | `string` The HCFS URI of the script that contains the Pig queries. |
| `queryList` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/QueryList`)`` A list of queries. |
| End of mutually exclusive fields. ||