From 2cff748fbc0d2c7cb075fcddb98ef107265d3780 Mon Sep 17 00:00:00 2001 From: bhandarivijay Date: Thu, 25 Dec 2025 07:35:10 +0000 Subject: [PATCH] Migrate gsutil usage to gcloud storage --- covid-economic-impact-batches/instructions/03-files-upload.md | 2 +- covid-economic-impact-scala/instructions/03-files-upload.md | 2 +- daily-covid-data-analysis/instructions/03-files-upload.md | 2 +- .../instructions/03-files-upload.md | 2 +- .../instructions/03-files-upload.md | 2 +- s8s-spark-mlops/04-templates/mnbs-exec-post-startup.sh | 2 +- s8s-spark-mlops/04-templates/umnbs-exec-post-startup.sh | 2 +- serverless_spark_streaming/instructions/03-files-upload.md | 2 +- social_media_data_analytics/instructions/03-files-upload.md | 2 +- timeseries_forecasting/instructions/03-files-upload.md | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/covid-economic-impact-batches/instructions/03-files-upload.md b/covid-economic-impact-batches/instructions/03-files-upload.md index 9f66018..93643ec 100644 --- a/covid-economic-impact-batches/instructions/03-files-upload.md +++ b/covid-economic-impact-batches/instructions/03-files-upload.md @@ -46,7 +46,7 @@ Run the following gcloud command in Cloud Shell to create the bucket to store da
``` -gsutil mb -p $PROJECT_ID -c STANDARD -l $REGION -b on gs://$BUCKET_CODE +gcloud storage buckets create gs://$BUCKET_CODE --project=$PROJECT_ID --default-storage-class=STANDARD --location=$REGION --uniform-bucket-level-access ```
diff --git a/covid-economic-impact-scala/instructions/03-files-upload.md b/covid-economic-impact-scala/instructions/03-files-upload.md index 9f66018..efed850 100644 --- a/covid-economic-impact-scala/instructions/03-files-upload.md +++ b/covid-economic-impact-scala/instructions/03-files-upload.md @@ -46,7 +46,7 @@ Run the following gcloud command in Cloud Shell to create the bucket to store da
``` -gsutil mb -p $PROJECT_ID -c STANDARD -l $REGION -b on gs://$BUCKET_CODE +gcloud storage buckets create gs://$BUCKET_CODE --project $PROJECT_ID --default-storage-class STANDARD --location $REGION --uniform-bucket-level-access ```
diff --git a/daily-covid-data-analysis/instructions/03-files-upload.md b/daily-covid-data-analysis/instructions/03-files-upload.md index 9f66018..efed850 100644 --- a/daily-covid-data-analysis/instructions/03-files-upload.md +++ b/daily-covid-data-analysis/instructions/03-files-upload.md @@ -46,7 +46,7 @@ Run the following gcloud command in Cloud Shell to create the bucket to store da
``` -gsutil mb -p $PROJECT_ID -c STANDARD -l $REGION -b on gs://$BUCKET_CODE +gcloud storage buckets create gs://$BUCKET_CODE --project $PROJECT_ID --default-storage-class STANDARD --location $REGION --uniform-bucket-level-access ```
diff --git a/retail_store_analytics_metastore/instructions/03-files-upload.md b/retail_store_analytics_metastore/instructions/03-files-upload.md index 9f66018..1f95598 100644 --- a/retail_store_analytics_metastore/instructions/03-files-upload.md +++ b/retail_store_analytics_metastore/instructions/03-files-upload.md @@ -46,7 +46,7 @@ Run the following gcloud command in Cloud Shell to create the bucket to store da
``` -gsutil mb -p $PROJECT_ID -c STANDARD -l $REGION -b on gs://$BUCKET_CODE +gcloud storage buckets create gs://$BUCKET_CODE --project $PROJECT_ID --default-storage-class=STANDARD --location=$REGION --uniform-bucket-level-access ```
diff --git a/retail_store_analytics_metastore_sparksql/instructions/03-files-upload.md b/retail_store_analytics_metastore_sparksql/instructions/03-files-upload.md index 9f66018..93643ec 100644 --- a/retail_store_analytics_metastore_sparksql/instructions/03-files-upload.md +++ b/retail_store_analytics_metastore_sparksql/instructions/03-files-upload.md @@ -46,7 +46,7 @@ Run the following gcloud command in Cloud Shell to create the bucket to store da
``` -gsutil mb -p $PROJECT_ID -c STANDARD -l $REGION -b on gs://$BUCKET_CODE +gcloud storage buckets create gs://$BUCKET_CODE --project=$PROJECT_ID --default-storage-class=STANDARD --location=$REGION --uniform-bucket-level-access ```
diff --git a/s8s-spark-mlops/04-templates/mnbs-exec-post-startup.sh b/s8s-spark-mlops/04-templates/mnbs-exec-post-startup.sh index 60bdcc8..8701d32 100644 --- a/s8s-spark-mlops/04-templates/mnbs-exec-post-startup.sh +++ b/s8s-spark-mlops/04-templates/mnbs-exec-post-startup.sh @@ -19,5 +19,5 @@ # (Managed notebook server) #........................................................................ -gsutil cp gs://USER_ID-s8s_notebook_bucket-PROJECT_NBR/pyspark/*.ipynb /home/jupyter/ +gcloud storage cp gs://USER_ID-s8s_notebook_bucket-PROJECT_NBR/pyspark/*.ipynb /home/jupyter/ #sudo chown jupyter:jupyter /home/jupyter/* diff --git a/s8s-spark-mlops/04-templates/umnbs-exec-post-startup.sh b/s8s-spark-mlops/04-templates/umnbs-exec-post-startup.sh index cb36ae1..165c541 100644 --- a/s8s-spark-mlops/04-templates/umnbs-exec-post-startup.sh +++ b/s8s-spark-mlops/04-templates/umnbs-exec-post-startup.sh @@ -19,5 +19,5 @@ # (User-managed notebook server) #........................................................................ -gsutil cp gs://USER_ID-s8s_notebook_bucket-PROJECT_NBR/vai-pipelines/*.ipynb /home/jupyter/ +gcloud storage cp gs://USER_ID-s8s_notebook_bucket-PROJECT_NBR/vai-pipelines/*.ipynb /home/jupyter/ chown jupyter:jupyter /home/jupyter/* diff --git a/serverless_spark_streaming/instructions/03-files-upload.md b/serverless_spark_streaming/instructions/03-files-upload.md index 9f66018..efed850 100644 --- a/serverless_spark_streaming/instructions/03-files-upload.md +++ b/serverless_spark_streaming/instructions/03-files-upload.md @@ -46,7 +46,7 @@ Run the following gcloud command in Cloud Shell to create the bucket to store da
``` -gsutil mb -p $PROJECT_ID -c STANDARD -l $REGION -b on gs://$BUCKET_CODE +gcloud storage buckets create gs://$BUCKET_CODE --project $PROJECT_ID --default-storage-class STANDARD --location $REGION --uniform-bucket-level-access ```
diff --git a/social_media_data_analytics/instructions/03-files-upload.md b/social_media_data_analytics/instructions/03-files-upload.md index 9f66018..efed850 100644 --- a/social_media_data_analytics/instructions/03-files-upload.md +++ b/social_media_data_analytics/instructions/03-files-upload.md @@ -46,7 +46,7 @@ Run the following gcloud command in Cloud Shell to create the bucket to store da
``` -gsutil mb -p $PROJECT_ID -c STANDARD -l $REGION -b on gs://$BUCKET_CODE +gcloud storage buckets create gs://$BUCKET_CODE --project $PROJECT_ID --default-storage-class STANDARD --location $REGION --uniform-bucket-level-access ```
diff --git a/timeseries_forecasting/instructions/03-files-upload.md b/timeseries_forecasting/instructions/03-files-upload.md index f6709f7..ca0e1f1 100644 --- a/timeseries_forecasting/instructions/03-files-upload.md +++ b/timeseries_forecasting/instructions/03-files-upload.md @@ -46,7 +46,7 @@ Run the following gcloud command in Cloud Shell to create the bucket to store da
``` -gsutil mb -p $PROJECT_ID -c STANDARD -l $REGION -b on gs://$BUCKET_CODE +gcloud storage buckets create gs://$BUCKET_CODE --project $PROJECT_ID --default-storage-class STANDARD --location $REGION --uniform-bucket-level-access ```