You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mkdocs/docs/api.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,22 @@ catalog:
33
33
credential: t-1234:secret
34
34
```
35
35
36
+
Note that multiple catalogs can be defined in the same `.pyiceberg.yaml`:
37
+
38
+
```yaml
39
+
catalog:
40
+
hive:
41
+
uri: thrift://127.0.0.1:9083
42
+
s3.endpoint: http://127.0.0.1:9000
43
+
s3.access-key-id: admin
44
+
s3.secret-access-key: password
45
+
rest:
46
+
uri: https://rest-server:8181/
47
+
warehouse: my-warehouse
48
+
```
49
+
50
+
and loaded in python by calling `load_catalog(name="hive")` and `load_catalog(name="rest")`.
51
+
36
52
This information must be placed inside a file called `.pyiceberg.yaml` located either in the `$HOME` or `%USERPROFILE%` directory (depending on whether the operating system is Unix-based or Windows-based, respectively) or in the `$PYICEBERG_HOME` directory (if the corresponding environment variable is set).
37
53
38
54
For more details on possible configurations refer to the [specific page](https://py.iceberg.apache.org/configuration/).
0 commit comments