zoukankan      html  css  js  c++  java
  • hue改下载行数

    参考:

    https://blog.csdn.net/lingbo229/article/details/85991230

    修改hue所在机器的默认配置后,重启hue即可

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

  • 相关阅读:
    C语言常用函数
    信号处理函数误用不可重入函数导致的进程死锁情况
    Shell脚本学习
    文件I/O详解
    字体标记的使用
    无序列表标记
    换行标记的使用
    HTML文件的基本结构
    预格式化标记的使用
    特殊标记的使用
  • 原文地址:https://www.cnblogs.com/hongfeng2019/p/11698758.html
Copyright © 2011-2022 走看看