Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The gsutil command need a -u flag #6

Open
BoHuang2018 opened this issue Feb 27, 2022 · 0 comments
Open

The gsutil command need a -u flag #6

BoHuang2018 opened this issue Feb 27, 2022 · 0 comments

Comments

@BoHuang2018
Copy link

To copy data from author's GCS bucket cloud-data-lake-gcp, run the commend

gsutil cp -r gs://cloud-data-lake-gcp/ gs://{your_bucket_name}

Terminal would return an error

BadRequestException: 400 Bucket is a requester pays bucket but no user project provided.

It says that we need to specify a project to be charged for the copy operation. According to GCP document, we can use the following command

gsutil -u {gcp-project-id-of-reader} cp -r gs://cloud-data-lake-gcp/ gs://{gcs_bucket_name_of_reader}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant