Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pubsub/streaming-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Dataflow].
BUCKET_NAME=your-gcs-bucket
PROJECT_NAME=$(gcloud config get-value project)

gsutil mb gs://$BUCKET_NAME
gcloud storage buckets create gs://$BUCKET_NAME
```

1. Start a [Google Cloud Scheduler] job that publishes one message to a [Google
Expand Down Expand Up @@ -155,7 +155,7 @@ in the [GCP Console Storage page]. You may need to wait a few minutes for the
files to appear.

```bash
gsutil ls gs://$BUCKET_NAME/samples/
gcloud storage ls gs://$BUCKET_NAME/samples/
```

## Cleanup
Expand Down Expand Up @@ -185,10 +185,10 @@ gsutil ls gs://$BUCKET_NAME/samples/

```bash
# Delete only the files created by this sample.
gsutil -m rm -rf "gs://$BUCKET_NAME/samples/output*"
gcloud storage rm --recursive --continue-on-error "gs://$BUCKET_NAME/samples/output*"

# [optional] Remove the Cloud Storage bucket.
gsutil rb gs://$BUCKET_NAME
gcloud storage buckets delete gs://$BUCKET_NAME
```

[Google Cloud Pub/Sub]: https://cloud.google.com/pubsub/docs/
Expand Down
10 changes: 5 additions & 5 deletions pubsublite/streaming-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Resources needed for this example:
export PROJECT_ID=$(gcloud config get-value project)
export BUCKET=your-gcs-bucket

gsutil mb gs://$BUCKET
gcloud storage buckets create gs://$BUCKET
```

1. Create a Pub/Sub Lite topic and subscription. Set `LITE_LOCATION` to a
Expand Down Expand Up @@ -130,7 +130,7 @@ mvn compile exec:java \
Storage bucket.

```sh
gsutil ls "gs://$BUCKET/samples/output*"
gcloud storage ls "gs://$BUCKET/samples/output*"
```

## (Optional) Creating a custom Dataflow template
Expand Down Expand Up @@ -199,21 +199,21 @@ input parameters.
1. Delete the Cloud Storage objects:

```sh
gsutil -m rm -rf "gs://$BUCKET/samples/output*"
gcloud storage rm --recursive --continue-on-error "gs://$BUCKET/samples/output*"
```

1. Delete the template image in Cloud Registry and delete the Flex template if
you have created them.

```sh
gcloud container images delete $TEMPLATE_IMAGE
gsutil rm $TEMPLATE_PATH
gcloud storage rm $TEMPLATE_PATH
```

1. Delete the Cloud Storage bucket:

```sh
gsutil rb "gs://$BUCKET"
gcloud storage buckets delete "gs://$BUCKET"
```

[Apache Beam]: https://beam.apache.org/
Expand Down