瀏覽代碼

HUE-7900 [hbase] Switch to Thrift transport default to use framed instead of buffered

Not in client hbase-site.xml apparently.
Romain Rigaux 7 年之前
父節點
當前提交
cfc75f7
共有 3 個文件被更改,包括 10 次插入13 次删除
  1. 4 5
      apps/hbase/src/hbase/conf.py
  2. 3 4
      desktop/conf.dist/hue.ini
  3. 3 4
      desktop/conf/pseudo-distributed.ini.tmpl

+ 4 - 5
apps/hbase/src/hbase/conf.py

@@ -22,7 +22,7 @@ import sys
 from django.utils.translation import ugettext_lazy as _t, ugettext as _
 
 from desktop.lib.conf import Config, validate_thrift_transport, coerce_bool
-from desktop.lib.exceptions import StructuredThriftTransportException
+
 
 LOG = logging.getLogger(__name__)
 
@@ -44,10 +44,9 @@ TRUNCATE_LIMIT = Config(
 
 THRIFT_TRANSPORT = Config(
   key="thrift_transport",
-  default="buffered",
-  help=_t("'buffered' is the default of the HBase Thrift Server and supports security. " +
-       "'framed' can be used to chunk up responses, " +
-       "which is useful when used in conjunction with the nonblocking server in Thrift."),
+  default="framed",
+  help=_t("'framed' is used to chunk up responses, which is useful when used in conjunction with the nonblocking server in Thrift."
+       "'buffered' used to be the default of the HBase Thrift Server."),
   type=str
 )
 

+ 3 - 4
desktop/conf.dist/hue.ini

@@ -1226,10 +1226,9 @@
   # Hard limit of rows or columns per row fetched before truncating.
   ## truncate_limit = 500
 
-  # 'buffered' is the default of the HBase Thrift Server and supports security.
-  # 'framed' can be used to chunk up responses,
-  # which is useful when used in conjunction with the nonblocking server in Thrift.
-  ## thrift_transport=buffered
+  # 'framed' is used to chunk up responses, which is useful when used in conjunction with the nonblocking server in Thrift.
+  # 'buffered' used to be the default of the HBase Thrift Server.
+  ## thrift_transport=framed
 
 
 ###########################################################################

+ 3 - 4
desktop/conf/pseudo-distributed.ini.tmpl

@@ -1228,10 +1228,9 @@
   # Hard limit of rows or columns per row fetched before truncating.
   ## truncate_limit = 500
 
-  # 'buffered' is the default of the HBase Thrift Server and supports security.
-  # 'framed' can be used to chunk up responses,
-  # which is useful when used in conjunction with the nonblocking server in Thrift.
-  ## thrift_transport=buffered
+  # 'framed' is used to chunk up responses, which is useful when used in conjunction with the nonblocking server in Thrift.
+  # 'buffered' used to be the default of the HBase Thrift Server.
+  ## thrift_transport=framed
 
 
 ###########################################################################