If data is present in HDFS and RF is defined, then how can we change Replication Factor?
Answer Posted / Karan Singh Rayapa
To change the replication factor (RF) of a file already present in HDFS, you can use the 'setrep' command with the Hadoop FileSystem API. The syntax is: hadoop fs -setrep [-R] <replication-level> <path> where <replication-level> is the new replication factor and <path> is the path to the file or directory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category