gcloud dataproc jobs submit spark --cluster=test-streaming-2 --region=us-central1 --class org.apache.hudi.gcp.bigquery.BigQuerySyncTool --jars=file://usr/lib/hudi/tools/bq-sync-tool/hudi-gcp-bundle-0.15.0.jar --properties=hoodie.gcp.bigquery.sync.project_id=dev-test-apps,dataset-name=streaming,dataset-location=us,source-uri=gs://streaming/dataproc/trips/partitionpath=*,source-uri-prefix=gs://streaming/dataproc/trips/,base-path=gs://streaming/dataproc/trips/,partitioned-by=partitionpath,use-bq-manifest-file=true
error: Exception in thread "main" com.beust.jcommander.ParameterException: The following options are required: [--dataset-location], [--source-uri], [--project-id], [--dataset-name]
gcloud dataproc jobs submit spark --cluster=test-streaming-2 --region=us-central1 --class org.apache.hudi.gcp.bigquery.BigQuerySyncTool --jars=file://usr/lib/hudi/tools/bq-sync-tool/hudi-gcp-bundle-0.15.0.jar -- project_id=dev-test-apps
error: Exception in thread "main" com.beust.jcommander.ParameterException: Was passed main parameter 'project_id=dev-test-apps' but no main parameter was defined in your arg class
gcloud dataproc jobs submit spark --cluster=test-streaming-2 --region=us-central1 --class org.apache.hudi.gcp.bigquery.BigQuerySyncTool --jars=file://usr/lib/hudi/tools/bq-sync-tool/hudi-gcp-bundle-0.15.0.jar --project-id dev-test-apps
error: ERROR: (gcloud.dataproc.jobs.submit.spark) unrecognized arguments: --project-id (did you mean '--project'?)
Hi @rchava3699,
Welcome to Google Cloud Community!
The error you have encountered in commands 1 to 3 indicates that the required arguments were not passed explicitly and the --properties flag is only used to configure Spark settings.
Here’s what you can do, ensure that each parameter is separated and use the separator (--) to explicitly pass each parameter to the BigQuerySyncTool. Additionally, double-check the parameter spellings for accuracy and ensure there are no extra whitespaces. For detailed guidance and correct format, refer to the provided documentation:
I hope the above information is helpful.