HDP on Windows – Installation Forum

Replication factor setting

  • #39425

    My environment:- Windows 2012 Servers, HDP 1.1 on Windows.
    On testing the affect of load performance under varying block replication settings at the directory level, i used the command “Setrep” to a different replication factor than in the dfs.replication setting. For ex., i have a 3 DataNode ( DN ) and 1 NameNode (NN) and the dfs.replication is set to “3”.
    At this particular directory level in HDFS, i have set the replication to “2” and it affected all the existing files in that directory. But any new file created in that directory defaults to the Value of “3”, the original value in the configuraiton.
    How do i override this, even for new files coming in. Unfortunately, i can’t do that from my application, as it does not support that yet.

to create new topics or reply. | New User Registration

  • Author
  • #41171
    Seth Lyubich

    Hi Muthu,

    Setrep sets replication factor for just the existing file or files in directory. For new files that are written you should set it explicitly when you create the files.

    Hope this helps.


You must be to reply to this topic. | Create Account

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.