Skip to main content
vincentD
Gold ⭐️
May 18, 2019
Solved

Efficient ways to store many images files

We have ten millions image and video files, are looking for efficient ways to store them in Hadoop (HDFS ...), and analyze them with tools available in the Hadoop ecosystem. I understand HDFS prefer big files. These image files are small, they are under ten megabytes. Please advise. Thanks very much!

 

 

3 replies

Harsh J
Gold ⭐️⭐️
Gold ⭐️⭐️
May 20, 2019
You can do this via two methods: Container files, or HBase MOBs. Which is
the right path depends on your eventual, dominant read pattern for this
data.

If your analysis will require loading up only a small range of images out
of the total dataset, or individual images, then HBase is a better fit with
its key based access model, columnar storage and caches.

If instead you will require processing these images in bulk, then large
container files (such as Sequence Files (with BytesWritable or equivalent),
Parquet Files (with BINARY/BYTE_ARRAY types), etc. that can store multiple
images into a single file, and allow for fast, sequential reads of all
images in bulk.
Translate
vincentD
vincentDAuthor
Gold ⭐️
May 24, 2019

Thanks a lot for your reply Harsh. These sound great. Can you give some pointers to some learning materials on both methods, i.e. examples, blogs, URLs or books etc?  

 

 

Translate
Harsh J
Gold ⭐️⭐️
Harsh JAnswer
Gold ⭐️⭐️
May 24, 2019