Obtains the logs of a Spark job.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetJobLog

The operation that you want to perform. Set the value to GetJobLog.

JobId String Yes j202010271622hangzhouf742a4330000923

The ID of the Spark job.

VcName String Yes MyCluster

The name of the virtual cluster (VC) on which the job is run.

Response parameters

Parameter Type Example Description
Data String INFO SparkContext: Running Spark version 2.x

The log content of the job.

RequestId String EC031B4B-3E07-40D2-9BC5-xxxx

The unique ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetJobLog
&JobId=j202010271622hangzhouf742a4330000923
&VcName=MyCluster
&<Common request parameters>

Sample success responses

XML format

<RequestId>3970ACB5-3E30-4A3A-B63A-xxxx</RequestId>
<Data>Running Spark version 2.x</Data>

JSON format

{
  "RequestId": "3970ACB5-3E30-4A3A-B63A-xxxx",
  "Data": "Running Spark version 2.x"
}

Error codes

For a list of error codes, visit the API Error Center.