Skip to content

Commit b8142a7

Browse files
chore: Migrate gsutil usage to gcloud storage (#10216)
1 parent 9c4da91 commit b8142a7

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

bigtable/beam/change-streams/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Google Cloud Storage.
139139
1. Observe the output on GCS and see the most popular songs.
140140

141141
```sh
142-
gsutil cat ${OUTPUT_LOCATION}/song-charts/GlobalWindow-pane-0-00000-of-00001.txt
142+
gcloud storage cat ${OUTPUT_LOCATION}/song-charts/GlobalWindow-pane-0-00000-of-00001.txt
143143
```
144144

145145
Example output:

bigtable/spark/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,23 +317,23 @@ One notable change (compared to the earlier executions) is that the example uses
317317
1. Create a bucket.
318318

319319
```
320-
gsutil mb \
321-
-b on \
322-
-l $BIGTABLE_SPARK_DATAPROC_REGION \
323-
-p $BIGTABLE_SPARK_PROJECT_ID \
320+
gcloud storage buckets create \
321+
--uniform-bucket-level-access \
322+
--location=$BIGTABLE_SPARK_DATAPROC_REGION \
323+
--project=$BIGTABLE_SPARK_PROJECT_ID \
324324
$BIGTABLE_SPARK_BUCKET_NAME
325325
```
326326

327327
1. Upload an input file into the bucket.
328328

329329
```
330-
gsutil cp src/test/resources/Romeo-and-Juliet-prologue.txt $BIGTABLE_SPARK_BUCKET_NAME
330+
gcloud storage cp src/test/resources/Romeo-and-Juliet-prologue.txt $BIGTABLE_SPARK_BUCKET_NAME
331331
```
332332

333333
1. List contents of the bucket.
334334

335335
```
336-
gsutil ls $BIGTABLE_SPARK_BUCKET_NAME
336+
gcloud storage ls $BIGTABLE_SPARK_BUCKET_NAME
337337
```
338338

339339
Output should be:
@@ -413,6 +413,6 @@ gcloud dataproc clusters list \
413413
Remove the input file in the bucket and the bucket itself.
414414

415415
```
416-
gsutil rm $BIGTABLE_SPARK_BUCKET_NAME/Romeo-and-Juliet-prologue.txt
417-
gsutil rb $BIGTABLE_SPARK_BUCKET_NAME
416+
gcloud storage rm $BIGTABLE_SPARK_BUCKET_NAME/Romeo-and-Juliet-prologue.txt
417+
gcloud storage buckets delete $BIGTABLE_SPARK_BUCKET_NAME
418418
```

0 commit comments

Comments
 (0)