How setrep command is used and what is the description to this

0 votes
Can any one explain how setrep command is used and what is the description to this?
Jun 19, 2019 in Big Data Hadoop by Rena
6,517 views

1 answer to this question.

0 votes

Hi,

This HDFS command is used to change the replication factor of a file. If the entered path is a directory, then this command changes the replication factor of all the files present in the directory tree rooted at the path provided by user recursively.

HDFS setrep Command usage:

setrep [-R] [-w] rep <path>

HDFS setrep Command Example

hdfs dfs -setrep -w 3 /user/dataflair/dir1

Here, the -w flag requests that the command waits for the replication process to get completed. This may likely take a very long time to get completed.

The -R flag is accepted for backward compatibility. It does not make any changes.

answered Jun 19, 2019 by Gitika
• 65,770 points

Related Questions In Big Data Hadoop

0 votes
11 answers
0 votes
5 answers
0 votes
1 answer

What is the command to navigate in HDFS?

First of all there is no command ...READ MORE

answered Apr 27, 2018 in Big Data Hadoop by Shubham
• 13,490 points
5,706 views
0 votes
1 answer

What is the command to find the free space in HDFS?

You can use dfsadmin which runs a ...READ MORE

answered Apr 29, 2018 in Big Data Hadoop by Shubham
• 13,490 points
2,228 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
11,072 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
2,571 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,055 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
4,639 views
0 votes
1 answer

What is the difference in DistCP command and Sqoop command in Hadoop?

Both the distCP (Distributed copy in Hadoop) ...READ MORE

answered Apr 11, 2019 in Big Data Hadoop by Gitika
• 65,770 points
1,577 views
0 votes
1 answer

What command is used to install MySql in centos?

You can use this command to install ...READ MORE

answered Apr 12, 2019 in Big Data Hadoop by Gitika
• 65,770 points
970 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP