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
| uri | https://rest-catalog/ws | URI identifying the REST Server |
151
+
| ugi | t-1234:secret | Hadoop UGI for Hive client. |
151
152
| credential | t-1234:secret | Credential to use for OAuth2 credential flow when initializing the catalog |
152
153
| token | FEW23.DFSDF.FSDF | Bearer token value to use for `Authorization` header |
153
154
| rest.sigv4-enabled | true | Sign requests to the REST Server using AWS SigV4 protocol |
154
155
| rest.signing-region | us-east-1 | The region to use when SigV4 signing a request |
155
156
| rest.signing-name | execute-api | The service signing name to use when SigV4 signing a request |
156
157
| rest.authorization-url | https://auth-service/cc | Authentication URL to use for client credentials authentication (default: uri + 'v1/oauth/tokens') |
157
158
159
+
### Headers in RESTCatalog
160
+
161
+
To configure custom headers in RESTCatalog, include them in the catalog properties with the prefix `header.`. This
162
+
ensures that all HTTP requests to the REST service include the specified headers.
163
+
164
+
```yaml
165
+
catalog:
166
+
default:
167
+
uri: http://rest-catalog/ws/
168
+
credential: t-1234:secret
169
+
header.content-type: application/vnd.api+json
170
+
```
171
+
158
172
## SQL Catalog
159
173
160
174
The SQL catalog requires a database for its backend. PyIceberg supports PostgreSQL and SQLite through psycopg2. The database connection has to be configured using the `uri` property. See SQLAlchemy's [documentation for URL format](https://docs.sqlalchemy.org/en/20/core/engines.html#backend-specific-urls):
0 commit comments