Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Celebrating as our community reaches 100,000 members! Thank you!
Labels (2)
avatar

Introduction

Traditional data warehouse archive strategy involves moving the old data into offsite tapes.

This does not quite fit the size for modern analytics applications since the data is unavailable for business analytics in real time need. Mature Hadoop clusters need a modern data archival strategy to keep the storage expense at check when data volume increases exponentially.

The term hybrid here designates an archival solution which is always available as well as completely transparent to the application layer

This document will cover

  1. Use case
  2. Requirement
  3. Storage cost analysis
  4. Design Approach
  5. Architecture diagram
  6. Code
  7. How to Setup and Run the code

Use case

Entire business data is in HDFS (HDP clusters) backed by Amazon EBS.

Disaster recovery solution is in place. Amazon claims S3 storage delivers 99.999999999% durability. In the case of data loss from S3 we have to recover the data from disaster recovery site.

Requirement

  1. Decrease storage costs.
  2. Archived data should be available to perform analytics 24X7.
  3. Access hot and cold (archived) data simultaneously from the application.
  4. The solution should be transparent to the application layer. In other words, absolutely no change should be required from the application layer after the hybrid archival strategy is implemented.
  5. Performance should be acceptable.

Storage cost analysis

Storage vs Cost Graph

19416-cost-graph.jpg

Basis for Calculation

For S3

$0.023 per GB-month of usage

Source: https://aws.amazon.com/s3/pricing/

For EBS SSD (gp2)

$0.10 per GB-month of provisioned storage

Including replication factor of 3, this becomes net $0.30 per GB

Source: https://aws.amazon.com/ebs/pricing/

Important Note

EBS is provisioned storage, whereas S3 is paid as you use.

In other words for future data growth, say you provision EBS storage of 1 TB. You have to pay 100% for it regardless you are using 0% or 90% of it.

Whereas S3 is just the storage you are using. So for 2GB pay for 2 GB and for 500 GB pay for 500GB. Hence S3 price calculation is divided by 2 roughly calculating the way it will grow in correlation to the HDFS EBS storage.

Please refer to part 2 for the architecture of the proposed solution and codebase:

https://community.hortonworks.com/articles/113934/hive-hybrid-storage-mechanism-to-reduce-storage-co...

1,508 Views