Skip to content

Commit 5726724

Browse files
docs: Add sample common issues. (#88)
* update * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * update * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> * update * Update samples/README.md Co-authored-by: Tianzi Cai <tianzi@google.com> Co-authored-by: Tianzi Cai <tianzi@google.com>
1 parent 103e1eb commit 5726724

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.readme-partials.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ custom_content: |
1919
<!--- TODO(jiangmichael): Release on Maven Central and add Maven Central link -->
2020
The connector will be available from the Maven Central repository. It can be used using the `--packages` option or the `spark.jars.packages` configuration property.
2121
22-
<!--
23-
| Scala version | Connector Artifact |
24-
| --- | --- |
25-
| Scala 2.11 | `com.google.cloud.pubsublite.spark:pubsublite-spark-sql-streaming:0.1.0:with-dependencies` |
26-
-->
27-
28-
<!--- TODO(jiangmichael): Add exmaple code and brief description here -->
22+
## Compatibility
23+
| Connector version | Spark version |
24+
| --- | --- |
25+
| 0.1.0 | 2.4.X |
2926
3027
## Usage
3128

samples/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,14 @@ To run the word count sample in Dataproc cluster, follow the steps:
8787
3. Delete Dataproc cluster.
8888
```sh
8989
gcloud dataproc clusters delete $CLUSTER_NAME --region=$REGION
90-
```
90+
```
91+
92+
## Common issues
93+
1. Permission not granted. <br>
94+
This could happen when creating a topic and a subscription, or submitting a job to your Dataproc cluster.
95+
Make sure your service account has at least `Editor` permissions for Pub/Sub Lite and Dataproc.
96+
Your Dataproc cluster needs `scope=cloud-platform` to access other services and resources within the same project.
97+
Your `gcloud` and `GOOGLE_APPLICATION_CREDENTIALS` should access the same project. Check out which project your `gcloud` and `gstuil` commands use with `gcloud config get-value project`.
98+
99+
2. Your Dataproc job fails with `ClassNotFound` or similar exceptions. <br>
100+
Make sure your Dataproc cluster uses images of [supported Spark versions](https://github.com/googleapis/java-pubsublite-spark#compatibility).

0 commit comments

Comments
 (0)