场景:
当在Hue上通过impala/hive查询后,下载数据时会限制10万行的数据量。最多只能下载10万行的数据,以下方法可以增加行数。
解决方法:
修改hue所在机器,找寻的{cloudera安装位置}/lib/hue/apps/beeswax/src/beeswax/conf.py修改默认配置后,重启hue即可。
#执行以下命令找到cloudera安装地方
find / -name beeswax
#cloudera安装地方
/opt/cloudera/parcels/CDH-7.0.0/lib/hue/apps/beeswax/src/beeswax
#开启conf.py
vim conf.py
找到DOWNLOAD_CELL_LIMIT 设定,更改预设值
# Deprecated
DOWNLOAD_CELL_LIMIT = Config(
key='download_cell_limit',
# 这里的设定就是下载限制,下面也提供范例 10K 行数*1K 列数 =10M,所以要增加100万就添加一个0即可
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.'))
重启hue。