Replication factor setting

to create new topics or reply. | New User Registration

This topic contains 1 reply, has 2 voices, and was last updated by  Seth Lyubich 1 year, 7 months ago.

  • Creator
    Topic
  • #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.

Viewing 1 replies (of 1 total)

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

  • Author
    Replies
  • #41171

    Seth Lyubich
    Keymaster

    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.

    Seth

    Collapse
Viewing 1 replies (of 1 total)
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.