GitHub user blrunner opened a pull request:
https://github.com/apache/tajo/pull/1024
TAJO-2069: Implement finding the total size of all objects in a bucket with
AWS SDK.
See following issues
* https://issues.apache.org/jira/browse/TAJO-2023
* https://issues.apache.org/jira/browse/TAJO-2069
When creating external table, Tajo calls ``FileSystem::getContentSummary``
to get the table volume in ``TableSpace::createTable``. This API will call S3
client api to loop recursively all sub directories of the specified path. It
will become a huge bottleneck with a large partitioned table. We need to
improve it for AWS Tajo users. Here is my benchmark results as follows.
# Configuration
* EC2 instance type : c3.xlarge
* Tajo version : 0.12.0-SNAPSHOT
* Cluster: 1 master, 1 worker
# Contents summary time
#of directories | S3AFileSystem | S3FileTableSpace | Improvement
-------------------|----------------------|--------------------------|-------------------
5 | 1056.5 ms | 136.2 ms | 7.8x
365 | 56549 ms | 153.8 ms | 367.7x
730 | 113007.5 ms | 193.2 ms | 585x
1095 | 168567 ms | 215.7 ms | 781.5x
1460 | 228129.5 ms | 234.2 ms | 974.1x
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/blrunner/tajo TAJO-2069
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/1024.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1024
----
commit 6e4ddd9728bde9781e8884ae88596ca732d7cc40
Author: JaeHwa Jung <[email protected]>
Date: 2016-05-16T07:38:09Z
TAJO-2069: Implement finding the total size of all objects in a bucket with
AWS SDK.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---