更新时间:2023-03-17 GMT+08:00
Hue页面上传大文件失败如何处理
问题
通过Hue页面上传大文件时,上传失败。
回答
- 不建议使用Hue文件浏览器上传大文件,大文件建议使用客户端通过命令上传。
- 如果必须使用Hue上传,参考以下步骤修改Httpd的参数:
- 以omm用户登录主管理节点。
- 执行以下命令编辑“httpd.conf”配置文件。
- 搜索21201,在</VirtualHost>配置中加上“RequestReadTimeout handshake=0 header=0 body=0”,如下所示。
... <VirtualHost *:21201> ServerName https://10.112.16.93:21201 AllowEncodedSlashes On SSLProxyEngine On ProxyRequests Off TraceEnable off ProxyTimeout 1200 RewriteEngine on RewriteMap proxylist dbm:${BIGDATA_ROOT_HOME}/om-server_*/Apache-httpd-*/conf/proxylist.dbm RewriteRule ^(\/.*)$ ${proxylist:/Hue/Hue/21201}$1 [E=TARGET_PATH:$1,L,P] Header edit Location ^(?!https://10.112.16.93:20009|https://10.112.16.93:21201)http[s]?://[^/]*(.*)$ https://10.112.16.93:21201$1 ProxyPassReverseCookiePath / / interpolate SSLEngine On SSLProxyProtocol All +TLSv1.2 -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 SSLProtocol ALL +TLSv1.2 -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-DSS-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256 SSLProxyCheckPeerName off SSLProxyCheckPeerCN off SSLCertificateFile "${BIGDATA_ROOT_HOME}/om-server_*/Apache-httpd-*/conf/security/proxy_ssl.cert" SSLCertificateKeyFile "${BIGDATA_ROOT_HOME}/om-server_*/Apache-httpd-*/conf/security/server.key" SSLProxyCACertificateFile ${BIGDATA_ROOT_HOME}/om-server_*/apache-tomcat-*/conf/security/tomcat.crt SSLCertificateChainFile "${BIGDATA_ROOT_HOME}/om-server_*/Apache-httpd-2.4.39/conf/security/proxy_chain.cert" RequestReadTimeout handshake=0 header=0 body=0 </VirtualHost> ...
- 执行ps -ef|grep httpd|grep -v grep|xargs kill -9命令重启httpd。
父主题: Hue常见问题