Using Fast Upload with Amazon S3
Writing data to Amazon S3 is subject to limitations of the s3a OutputStream implementation, which buffers the entire file to disk before uploading it to S3. This can cause the upload to proceed very slowly and can require a large amount of temporary disk space on local disks.
As of CDH 5.12, you can configure CDH to use the Fast Upload feature. This feature implements several performance improvements and has tunable parameters for buffering to disk (the default) or to memory, tuning the number of threads, and for specifying the disk directories used for buffering.
For more information on this feature, and to learn about the tunable parameters, see Hadoop-AWS module: Integration with Amazon Web Services .
Enabling Fast Upload using Cloudera Manager
- Go to the HDFS service.
- Select the Configuration tab.
- Search for "core-site.xml" and locate the Cluster-wide Advanced Configuration Snippet (Safety Valve) for core-site.xml property.
- Add the fs.s3a.fast.upload property and set it to true. See Setting an Advanced Configuration Snippet.
- Set any additional tuning properties in the Cluster-wide Advanced Configuration Snippet (Safety Valve) for core-site.xml configuration properties.
- Click Save Changes.
Cloudera Manager will indicate that there are stale services and which services need to be restarted. Restart the indicated services.
Enabling Fast Upload Using the Command Line
- Set the fs.s3a.fast.upload to true in the core-site.xml configuration file. For example:
<property> <name>fs.s3a.fast.upload</name> <value>true</value> </property>
- Set any additional tuning parameters in the core-site.xml file.
- Restart the HDFS service.