This page provides information to help you monitor and debug Dataproc jobs and understand Dataproc job error messages.
Job monitoring and debugging
Use the Google Cloud CLI, Dataproc REST API, and Google Cloud console to analyze and debug Dataproc jobs.
gcloud CLI
To examine a running job's status:
gcloud dataproc jobs describe job-id \ --region=region
To view job driver output, see View job output.
REST API
Call jobs.get to examine a job's JobStatus.State, JobStatus.Substate, JobStatus.details, and YarnApplication fields.
Console
To view job driver output, see View job output.
To view the dataproc agent log in Logging, select Dataproc Cluster→Cluster Name→Cluster UUID from the Logs Explorer cluster selector.
Then use the logs selector to select google.dataproc.agent
logs.
View job logs in Logging
If a job fails, you can access job logs in Logging.
Determine who submitted a job
Looking up the details of a job will show who submitted that job in the submittedBy
field. For example, this job output shows user@domain
submitted the example
job to a cluster.
... placement: clusterName: cluster-name clusterUuid: cluster-uuid reference: jobId: job-uuid projectId: project status: state: DONE stateStartTime: '2018-11-01T00:53:37.599Z' statusHistory: - state: PENDING stateStartTime: '2018-11-01T00:33:41.387Z' - state: SETUP_DONE stateStartTime: '2018-11-01T00:33:41.765Z' - details: Agent reported job success state: RUNNING stateStartTime: '2018-11-01T00:33:42.146Z' submittedBy: user@domain
Error messages
Task was not acquired: Indicates that the Dataproc agent on the master node was unable to acquire the task from the control plane. This often happens due to out-of-memory (OOM) or network issues. If the job ran successfully previously and you have not changed network configuration settings, OOM is the most likely cause, often the result of the submission of many concurrently running jobs or jobs whose drivers consume significant memory (for example, jobs that load large datasets into memory).
No agent on master node(s) found to be active: Indicates that the Dataproc agent on the master node is not active and cannot accept new jobs. This often happens due to out-of-memory (OOM) or network issues, or if the master node VM is unhealthy. If the job ran successfully previously and you have not changed network configuration settings, OOM is the most likely cause, which often results from the submission of many concurrently running jobs or jobs whose drivers consume significant memory (jobs that load large datasets into memory). This problem can be resolved by restarting (stopping, then starting) the Dataproc cluster or retrying the job submission later. Note: Stopping a cluster causes all running jobs to fail.
Task not found: Indicates that the cluster was deleted while a job was running. To help avoid this error, before submitting a job, confirm cluster status is
RUNNING
by viewing cluster status on the Clusters page in the Google Cloud console, running thegcloud dataproc clusters describe
command, or by checkingClusterStatus.State
with aclusters.get
API request.