Przeglądaj źródła

HUE-9089 [thrift] Update information about major Hive Thrift change version

Romain 6 lat temu
rodzic
commit
d2fce06a6b

+ 1 - 1
desktop/conf.dist/hue.ini

@@ -1246,7 +1246,7 @@
   ## max_number_of_sessions=1
 
   # Thrift version to use when communicating with HiveServer2.
-  # New column format is from version 11.
+  # Version 11 comes with Hive 3.0. If issues, try 7.
   ## thrift_version=11
 
   # A comma-separated list of white-listed Hive configuration properties that users are authorized to set.

+ 1 - 1
desktop/conf/pseudo-distributed.ini.tmpl

@@ -1230,7 +1230,7 @@
   ## max_number_of_sessions=1
 
   # Thrift version to use when communicating with HiveServer2.
-  # New column format is from version 11.
+  # Version 11 comes with Hive 3.0. If issues, try 7.
   ## thrift_version=11
 
   # A comma-separated list of white-listed Hive configuration properties that users are authorized to set.

+ 6 - 1
desktop/core/src/desktop/lib/thrift_util.py

@@ -521,7 +521,12 @@ class SuperClient(object):
         except Exception as e:
           logging.exception("Thrift saw exception (this may be expected).")
           if "'client_protocol' is unset" in e.message:
-            raise StructuredException('OPEN_SESSION', 'Check if the thrift_version configured is supported. Request failed with "%s"' % str(e), data=None, error_code=502)
+            raise StructuredException(
+              'OPEN_SESSION',
+              'Thrift version configured by property thrift_version might be too high. Request failed with "%s"' % str(e),
+              data=None,
+              error_code=502
+            )
           else:
             raise