Skip to content

Commit 092012a

Browse files
committed
Comments
1 parent 322d143 commit 092012a

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

mkdocs/docs/configuration.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,23 @@ catalog:
269269
default:
270270
uri: thrift://localhost:9083
271271
hive.hive2-compatible: true
272-
hive.kerberos-authorization: true
272+
hive.kerberos-authentication: true
273273
s3.endpoint: http://localhost:9000
274274
```
275275

276-
| Key | Example | Description |
277-
| --------------------------- | ------- | --------------------------------- |
278-
| hive.hive2-compatible | true | Using Hive 2.x compatibility mode |
279-
| hive.kerberos-authorization | true | Using authentication via Kerberos |
276+
| Key | Example | Description |
277+
|------------------------------| ------- | --------------------------------- |
278+
| hive.hive2-compatible | true | Using Hive 2.x compatibility mode |
279+
| hive.kerberos-authentication | true | Using authentication via Kerberos |
280+
281+
When using Hive 2.x, make sure to set the compatibility flag:
282+
283+
```yaml
284+
catalog:
285+
default:
286+
...
287+
hive.hive2-compatible: true
288+
```
280289

281290
### Glue Catalog
282291

pyiceberg/catalog/hive.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
HIVE2_COMPATIBLE = "hive.hive2-compatible"
122122
HIVE2_COMPATIBLE_DEFAULT = False
123123

124-
HIVE_KERBEROS_AUTH = "hive.kerberos-authorization"
124+
HIVE_KERBEROS_AUTH = "hive.kerberos-authentication"
125125
HIVE_KERBEROS_AUTH_DEFAULT = False
126126

127127
LOCK_CHECK_MIN_WAIT_TIME = "lock-check-min-wait-time"
@@ -163,11 +163,7 @@ def _init_thrift_client(self):
163163
self._client = Client(protocol)
164164

165165
def __enter__(self) -> Client:
166-
if not self._kerberos_auth:
167-
self._transport.open()
168-
else:
169-
self._init_thrift_client()
170-
self._transport.open()
166+
self._transport.open()
171167

172168
if self._ugi:
173169
self._client.set_ugi(*self._ugi)

0 commit comments

Comments
 (0)