Browse Source

HUE-1278 [beeswax] HiveServer2 backend should not require a kerberos principal

- Fix hive site parsing for hs2 kerberos credentials to default to None
Abraham Elmahrek 12 năm trước cách đây
mục cha
commit
baf7a8a
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      apps/beeswax/src/beeswax/server/beeswax_lib.py

+ 4 - 1
apps/beeswax/src/beeswax/server/beeswax_lib.py

@@ -218,7 +218,10 @@ class BeeswaxClient:
       principal = KERBEROS.HUE_PRINCIPAL.get()
 
     # We should integrate hive_site.get_metastore() here in the future
-    kerberos_principal_short_name = principal.split('/', 1)[0]
+    if principal:
+      kerberos_principal_short_name = principal.split('/', 1)[0]
+    else:
+      kerberos_principal_short_name = None
 
     return use_sasl, kerberos_principal_short_name