File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 121121HIVE2_COMPATIBLE = "hive.hive2-compatible"
122122HIVE2_COMPATIBLE_DEFAULT = False
123123
124- HIVE_KERBEROS_AUTH = "hive.kerberos-authorization "
124+ HIVE_KERBEROS_AUTH = "hive.kerberos-authentication "
125125HIVE_KERBEROS_AUTH_DEFAULT = False
126126
127127LOCK_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 )
You can’t perform that action at this time.
0 commit comments