File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ Google Cloud Storage.
1391391. 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:
Original file line number Diff line number Diff line change @@ -317,23 +317,23 @@ One notable change (compared to the earlier executions) is that the example uses
3173171 . 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
3273271 . 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
3333331 . List contents of the bucket.
334334
335335```
336- gsutil ls $BIGTABLE_SPARK_BUCKET_NAME
336+ gcloud storage ls $BIGTABLE_SPARK_BUCKET_NAME
337337```
338338
339339Output should be:
@@ -413,6 +413,6 @@ gcloud dataproc clusters list \
413413Remove 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```
You can’t perform that action at this time.
0 commit comments