Jelajahi Sumber

HUE-6128 [hive] Default custom authtentication to PLAIN instead of failing

Would not 500 and work in most the cases.
https://github.com/cloudera/hue/issues/480
Romain Rigaux 8 tahun lalu
induk
melakukan
ff7c2f9

+ 2 - 1
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -470,7 +470,8 @@ class HiveServerClient:
       'NONE': 'PLAIN',
       'NOSASL': 'NOSASL',
       'LDAP': 'PLAIN',
-      'PAM': 'PLAIN'
+      'PAM': 'PLAIN',
+      'CUSTOM': 'PLAIN',
   }
 
   DEFAULT_TABLE_TYPES = [

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/base.py

@@ -295,5 +295,5 @@ class Api(object):
 def _get_snippet_name(notebook, unique=False, table_format=False):
   name = (('%(name)s' + ('%(id)s' if unique else '') if notebook.get('name') else '%(type)s-%(id)s') % notebook)
   if table_format:
-    name = re.sub('-|\s', '_', name)
+    name = re.sub('-|\s:', '_', name)
   return name