码迷,mamicode.com
首页 > 其他好文 > 详细

【原创】大叔经验分享(55)hue导出行数限制

时间:2019-05-13 10:38:50      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:nload   ted   The   cloudera   row   class   pps   parcel   经验   

/opt/cloudera/parcels/CDH/lib/hue/apps/beeswax/src/beeswax/conf.py

# Deprecated
DOWNLOAD_CELL_LIMIT = Config(
  key=download_cell_limit,
  default=10000000,
  type=int,
  help=_t(A limit to the number of cells (rows * columns) that can be downloaded from a query 
          (e.g. - 10K rows * 1K columns = 10M cells.) 
          A value of -1 means there will be no limit.))

def get_deprecated_download_cell_limit():
  """Get the old default"""
  return DOWNLOAD_CELL_LIMIT.get() / 100 if DOWNLOAD_CELL_LIMIT.get() > 0 else DOWNLOAD_CELL_LIMIT.get()

DOWNLOAD_ROW_LIMIT = Config(
  key=download_row_limit,
  dynamic_default=get_deprecated_download_cell_limit,
  type=int,
  help=_t(A limit to the number of rows that can be downloaded from a query before it is truncated. 
          A value of -1 means there will be no limit.))

 

【原创】大叔经验分享(55)hue导出行数限制

标签:nload   ted   The   cloudera   row   class   pps   parcel   经验   

原文地址:https://www.cnblogs.com/barneywill/p/10855201.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!