-
错误描述
HUE版本:CDH5.15
原因:是生成的下载文件名中包含换行符,CDH在后续新版本已进行了修复,但囿于目前CDH下载资源收费,采用手动修改代码方式
通过日志找到后台服务异常代码路径:
/opt/cloudera/parcels/CDH/lib/hue/desktop/core/src/desktop/lib/export_csvxls.py
修改如下:def make_response(generator, format, name, encoding=None): """ @param data An iterator of rows, where every row is a list of strings @param format Either "csv" or "xls" @param name Base name for output file @param encoding Unicode encoding for data """ if format == 'csv': content_type = 'application/csv' resp = StreamingHttpResponse(generator, content_type=content_type) try: del resp['Content-Length']
Hue导出xls,csv查询文件bug
最新推荐文章于 2023-08-11 20:15:00 发布