Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8233263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:04:21+00:00 2026-06-07T18:04:21+00:00

I think my question would be best explained with an example. Say that you’re

  • 0

I think my question would be best explained with an example. Say that you’re storing an image on HDFS. That image is large enough that it’s split into four separate, smaller files on HDFS. When you perform an operation that returns that image, does Hadoop return those 4 small files that can be combined back into the original image? Or does Hadoop automatically recombine the 4 small files back into the original?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:04:23+00:00Added an answer on June 7, 2026 at 6:04 pm

    Hadoop Distributed File System (HDFS) stores each file in one or more blocks (with each block being replicated one or more times).

    For every file, you can configure the file block size and the replication factor (default values are used if not provided).

    When you do any file based operation, you’re dealing with streams of data, the Name Node is the central repository mapping file paths to blocks and their locations (data nodes).

    Using an example, say you have a file block size of 32 MB, and a 50MB file – this will be split into 2 blocks (32 MB & 18 MB). If the configured replication factor of the file is say 3, then the NameNode will try and ensure that each block is replicated to 3 data nodes in your cluster.

    When you try and read from this file, you’re returned an FSInputStream, which like most input streams, you can seek to a certain byte position in the file. The DFSClient is abstracting you away from the details, but it knows for a particular byte offset, which block this relates to and seamlessly acquires the bytes (even as you step between block boundaries).

    So to summarize and address your question – to the client reading from HDFS, it looks like one continuous input stream, but it’s actually 4 blocks stitched together as required

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off I would like to say that I think that my question may
I think my question is best explained via an example: Suppose I want to
I think the issue is explained best with an example. public class MyService {
I think this question is best explained by giving you a jsFiddle . In
Random question, sorry if not appropriate for stackoverflow, but I didn't think it would
I think the question title is clear enough: is is possible to stable_sort() a
I think my question might be unclear , but i would try to explain
I think my question might seem a bit odd, but here it goes; I'm
I think this question has been asked many a times but I've been searching
I think the question is a bit silly, but for a newbie startup building

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.