Commit 21db3b2
committed
[SPARK-52467] Add
### What changes were proposed in this pull request?
This PR aims to add `dfs-read-write` and `localstack` examples.
### Why are the changes needed?
To provide the following examples.
1. How to add additional packages
```yaml
spark.jars.packages: "org.apache.hadoop:hadoop-aws:3.4.1"
spark.jars.ivy: "/tmp/.ivy2.5.2"
```
2. How to use S3
```yaml
spark.hadoop.fs.defaultFS: "..."
spark.hadoop.fs.s3a.endpoint: "..."
spark.hadoop.fs.s3a.path.style.access: "..."
spark.hadoop.fs.s3a.access.key: "..."
spark.hadoop.fs.s3a.secret.key: "..."
```
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manually run.
```bash
$ kubectl apply -f examples/localstack.yml
$ kubectl apply -f examples/dfs-read-write.yaml
$ kubectl logs -f dfs-read-write-0-driver
...
Success! Local Word Count 18 and DFS Word Count 18 agree.
...
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes apache#242 from dongjoon-hyun/SPARK-52467.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>dfs-read-write and localstack examples1 parent 70891ed commit 21db3b2
2 files changed
+99
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
0 commit comments