Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit ef56294

Browse files
aman-ebaybusunkim96
authored andcommitted
Update Python Cloud Shell walkthrough script [(#2733)](GoogleCloudPlatform/python-docs-samples#2733)
Cloud Shell walkthrough scripts no longer support enabling APIs. APIs must be enabled by linking to the console. Updated product name: "Cloud Dataproc" -> "Dataproc".
1 parent 07c9dfb commit ef56294

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

samples/snippets/python-api-walkthrough.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Use the Python Client Library to call Cloud Dataproc APIs
1+
# Use the Python Client Library to call Dataproc APIs
22

33
Estimated completion time: <walkthrough-tutorial-duration duration="5"></walkthrough-tutorial-duration>
44

@@ -7,13 +7,13 @@ Estimated completion time: <walkthrough-tutorial-duration duration="5"></walkthr
77
This [Cloud Shell](https://cloud.google.com/shell/docs/) walkthrough leads you
88
through the steps to use the
99
[Google Cloud Client Libraries for Python](https://googleapis.github.io/google-cloud-python/latest/dataproc/index.html)
10-
to programmatically interact with [Cloud Dataproc](https://cloud.google.com/dataproc/docs/).
10+
to programmatically interact with [Dataproc](https://cloud.google.com/dataproc/docs/).
1111

1212
As you follow this walkthrough, you run Python code that calls
13-
[Cloud Dataproc gRPC APIs](https://cloud.google.com/dataproc/docs/reference/rpc/)
13+
[Dataproc gRPC APIs](https://cloud.google.com/dataproc/docs/reference/rpc/)
1414
to:
1515

16-
* create a Cloud Dataproc cluster
16+
* create a Dataproc cluster
1717
* submit a small PySpark word sort job to run on the cluster
1818
* get job status
1919
* tear down the cluster after job completion
@@ -24,7 +24,7 @@ The `submit_job_to_cluster.py file` used in this walkthrough is opened in the
2424
Cloud Shell editor when you launch the walkthrough. You can view
2525
the code as your follow the walkthrough steps.
2626

27-
**For more information**: See [Cloud Dataproc&rarr;Use the Python Client Library](https://cloud.google.com/dataproc/docs/tutorials/python-library-example) for
27+
**For more information**: See [Dataproc&rarr;Use the Python Client Library](https://cloud.google.com/dataproc/docs/tutorials/python-library-example) for
2828
an explanation of how the code works.
2929

3030
**To reload this walkthrough:** Run the following command from the
@@ -41,8 +41,13 @@ an explanation of how the code works.
4141
1. Create or select a Google Cloud Platform project to use for this tutorial.
4242
* <walkthrough-project-billing-setup permissions=""></walkthrough-project-billing-setup>
4343

44-
1. Enable the Cloud Dataproc, Compute Engine, and Cloud Storage APIs in your project.
45-
* <walkthrough-enable-apis apis="dataproc,compute_component,storage-component.googleapis.com"></walkthrough-enable-apis>
44+
1. Click the link below to enable the Dataproc, Compute Engine, and Cloud Storage APIs
45+
in a separate GCP console tab in your browser.
46+
47+
**Note:** After you select your project and enable the APIs, return to this tutorial by clicking
48+
on the **Cloud Shell** tab in your browser.
49+
50+
* [Enable APIs](https://console.cloud.google.com/flows/enableapi?apiid=dataproc,compute_component,storage-component.googleapis.com&redirect=https://console.cloud.google.com)
4651

4752
## Prerequisites (2)
4853

@@ -140,7 +145,8 @@ Job output in Cloud Shell shows cluster creation, job submission,
140145
### Next Steps:
141146
142147
* **View job details from the Console.** View job details by selecting the
143-
PySpark job from the Cloud Dataproc
148+
PySpark job from the Dataproc
149+
=
144150
[Jobs page](https://console.cloud.google.com/dataproc/jobs)
145151
in the Google Cloud Platform Console.
146152
@@ -160,5 +166,5 @@ Job output in Cloud Shell shows cluster creation, job submission,
160166
gsutil rm -r gs://$BUCKET
161167
```
162168
163-
* **For more information.** See the [Cloud Dataproc documentation](https://cloud.google.com/dataproc/docs/)
169+
* **For more information.** See the [Dataproc documentation](https://cloud.google.com/dataproc/docs/)
164170
for API reference and product feature information.

0 commit comments

Comments
 (0)