Skip to content

Commit a5e0d4f

Browse files
committed
Updated README.md with correct instructions for setting spark timezone
1 parent b7bb89e commit a5e0d4f

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

examples/docker-compose/README.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,16 @@ volumes:
5050
3. Restart the containers: `docker compose down && docker compose up`
5151

5252
#### Querying data using Spark
53-
To set the session timezone in Spark, add the following configuration under the `configs` section in `docker-compose-spark-iceberg.yaml`:
54-
55-
```yaml
56-
configs:
57-
- spark.sql.session.timeZone=America/Chicago
53+
To set the session timezone in spark, uncomment and set the value for the variable `spark.sql.session.timeZone`
54+
under the section.
55+
```
56+
configs:
57+
spark-defaults.conf:
58+
content: |
5859
```
5960
60-
Replace `America/Chicago` with your desired timezone.
61-
62-
For example, your Spark service definition might look like:
63-
64-
```yaml
65-
spark-iceberg:
66-
image: ...
67-
environment:
68-
- ...
69-
configs:
70-
- spark.sql.session.timeZone=America/Chicago
71-
...
61+
```
62+
# spark.sql.session.timeZone America/Chicago
7263
```
7364
7465
This ensures that Spark SQL sessions will use the specified timezone.

0 commit comments

Comments
 (0)