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 8543717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:22:25+00:00 2026-06-11T12:22:25+00:00

I wrote a simple program that puts data to HDFS. I set dfs.replication to

  • 0

I wrote a simple program that puts data to HDFS. I set dfs.replication to 3 via Configuration object and run this program against pseudo distributed hdfs cluster. I expected to get an Exception since the replication factor is 3 and there is only one datanode; but the program successfully finished its execution.

Is it a way to understand that my data is in under-replicated state? I think this relates to dfs.replication.min, but when i changed it to 3 too (in the program Configuration object), writes are still successful and i didn’t get any exceptions.

  • 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-11T12:22:26+00:00Added an answer on June 11, 2026 at 12:22 pm

    I’ve finished some tests and found out the reason.

    At first, when you create a file its replication factor must be higher or equal to dfs.replication.min. HDFS provides that the replication up to dfs.replication.min nodes is synchronous, replication to the rest of the nodes (dfs.replication – dfs.replication.min) is being processed asynchronously.

    Since the default settings for dfs.replication.min is 1, I successfully wrote a file with dfs.replication = 3 to hdfs cluster of one node.

    The default replication factor (dfs.replication) is set 3, but can be changed per request via Configuration object. The sad part is that you can’t change dfs.replication.min per request, so you can’t improve reliability if it was set to lower layer.

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

Sidebar

Related Questions

The problem is this: I wrote a simple program that uses FFMPEG. compile as
I wrote this simple program today, but I found that cin.get() refuses to work
I wrote a simple program to test a theory that finally block will always
I recently wrote a program that used a simple producer/consumer pattern. It initially had
I am trying to write a simple program in C# that will read data
I recently wrote a program that takes inputted char data, tests if it is
I set up CDT for eclipse and wrote a simple hello world C program:
Thanks for reading and answering in advance! I wrote a simple C# program that
I wrote this simple Prolog program. man(socrates). mortal(X) :- man(X). immortal(X) :- immortal(X). I
I wrote this simple Java program which connects to internic server and returns the

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.