Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Could not upload .csv file more than 200mb on HDFS Ambari: 413 (Request Entity Too Large)

Highlighted

Could not upload .csv file more than 200mb on HDFS Ambari: 413 (Request Entity Too Large)

New Contributor

Installed the sandbox on VirtualBox but could not upload a .csv file more than 200mb on HDFS using Ambari interface and getting a message 413 (Request Entity Too Large). The file upload bar stuck at 100%.

Though working fine with files size smaller than 200mb.

86506-ambari-file-upload.jpg

4 REPLIES 4

Re: Could not upload .csv file more than 200mb on HDFS Ambari: 413 (Request Entity Too Large)

Hi ,

I feel like this is similar to this thread : cant-upload-files-with-more-than-1mb

Please see if the best answer provided there is helpfull for you.

you can also upload large files using HDFS command instead of using filesview.

Not Sure if files view supports such big data.

Re: Could not upload .csv file more than 200mb on HDFS Ambari: 413 (Request Entity Too Large)

New Contributor

Unfortunately the thread you referred is little help because I am already using localhost:8080 to access Ambari. I had uploaded 4GB files using FilesView on windows docker. But could not upload same file on VirtualBox. So FilesView does suppoort large files. I have allocated 8GB RAM to VirtualBox and plenty of disk space.

Is there a file size cap somewhere on Ambari or the webserver hortonworks use? no idea which webserver.

Re: Could not upload .csv file more than 200mb on HDFS Ambari: 413 (Request Entity Too Large)

New Contributor

What you need to do?

Firstly login ssh root to your host VM.

ssh root@sandbox-hdp.hortonworks.com -p 2200 
User: root Password: hadoop 

Architecture of CDA presented here: https://hortonworks.com/tutorial/sandbox-architecture/

Then open and edit: /sandbox/proxy/nginx.conf

 vi  /sandbox/proxy/nginx.conf 

Press i

Set value for client_max_body_size 200m;

Press Esc

Type :wq

Then restart container:

docker ps 

Get container id

docker restart PID

Re: Could not upload .csv file more than 200mb on HDFS Ambari: 413 (Request Entity Too Large)

New Contributor

Thank you! It helped.

Don't have an account?
Coming from Hortonworks? Activate your account here