hue解决下载10万行的限制

一、问题描述:通过HUE impala/hive查询后,导出查询结果集最多只有10万行

 

二、问题原因:Hue默认配置原因,默认现在行数为10万行,列数为100列

注意:应该以hue管理员账户登录,否则看不到配置

 

三、解决方案:修改hue所在机器的默认配置后,重启hue即可

[root@cdh-001 ~]# find / -name beeswax     查找配置文件所在路径,选择src那个路径

vi /opt/cloudera/parcels/CDH-5.12.0-1.cdh5.12.0.p0.29/lib/hue/apps/beeswax/src/beeswax/conf.py   

 

DOWNLOAD_CELL_LIMIT = Config(

  key='download_cell_limit',

  # 表格限制的大小,行数 * 列数。加一个0即可,修改后可下载的行数变成100万

  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"""

  # 表格的大小除100,就是行数,100是列数

  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.'))

 

 

 

 

 

 

  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值