Bird
0
0

You try to create a Dataproc cluster with this command but get an error: ```bash gcloud dataproc clusters create my-cluster --region=us-central1 --num-workers=2 --worker-machine-type=n1-standard-4 ``` What is the likely cause?

medium📝 Debug Q6 of 15
Hadoop - Modern Data Architecture with Hadoop
You try to create a Dataproc cluster with this command but get an error: ```bash gcloud dataproc clusters create my-cluster --region=us-central1 --num-workers=2 --worker-machine-type=n1-standard-4 ``` What is the likely cause?
ARegion us-central1 does not support Dataproc
BIncorrect machine type name
CMissing project ID in the command
Dnum-workers must be at least 3
Step-by-Step Solution
Solution:
  1. Step 1: Check required parameters for gcloud dataproc create

    Project ID is required if not set in config or environment.
  2. Step 2: Analyze command

    The command lacks --project flag or default project, causing error.
  3. Final Answer:

    Missing project ID in the command -> Option C
  4. Quick Check:

    Project ID required for cluster creation = Missing project ID in the command [OK]
Quick Trick: Always specify project ID or set default before creating clusters [OK]
Common Mistakes:
  • Assuming machine type is wrong
  • Thinking region is unsupported
  • Believing minimum workers is 3

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Hadoop Quizzes