<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Unable to change the replication factor from 3 to 2 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218975#M72328</link>
    <description>&lt;P&gt;Hi, please give the command with root user.&lt;/P&gt;&lt;PRE&gt;[root@namenode~]# sudo su hdfs -l -c 'hdfs dfsadmin -safemode enter'
[root@namenode~]# sudo su hdfs -l -c 'hdfs dfsadmin -saveNamespace'&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Dec 2017 00:29:00 GMT</pubDate>
    <dc:creator>erkansirin78</dc:creator>
    <dc:date>2017-12-07T00:29:00Z</dc:date>
    <item>
      <title>Unable to change the replication factor from 3 to 2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218972#M72325</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;I have been trying to change the replication factor from &lt;STRONG&gt;"3"&lt;/STRONG&gt; to &lt;STRONG&gt;"2"&lt;/STRONG&gt;. but failed. &lt;BR /&gt;Here the steps :&lt;BR /&gt;1. First I check the replication factor from Ambari server. it is &lt;STRONG&gt;"3"&lt;/STRONG&gt;.&lt;BR /&gt;2. Then i go to shell and check the replication factor by wrote the commands : &lt;BR /&gt;     &lt;STRONG&gt;"cd /etc/hadoop/conf" : &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;"View hdfs-site.xml" &lt;/STRONG&gt;&lt;BR /&gt;     replication factor is &lt;STRONG&gt;"3"&lt;/STRONG&gt; also here.&lt;BR /&gt;3. Then i go to Ambari server and Change the replication factor from &lt;STRONG&gt;"3"&lt;/STRONG&gt; to &lt;STRONG&gt;"2"&lt;/STRONG&gt; and final it by click the &lt;STRONG&gt;"Lock"&lt;/STRONG&gt; button and then Save. &lt;BR /&gt;4. and then i have restart the all services. &lt;BR /&gt;after these steps Ambari server show me replication factor &lt;STRONG&gt;"2"&lt;/STRONG&gt; . BUT when i go to shell and write the command : &lt;BR /&gt;&lt;STRONG&gt;"View hdfs-site.xml" &lt;/STRONG&gt;&lt;BR /&gt;it show me  replication factor still &lt;STRONG&gt;"3"&lt;/STRONG&gt; .&lt;BR /&gt;What thing i did wrong ? &lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 20:26:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218972#M72325</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-05T20:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change the replication factor from 3 to 2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218973#M72326</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/44156/mudassarlhr.html" nodeid="44156"&gt;@Mudassar Hussain&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you put namenode safemode and save the namespace?&lt;/P&gt;&lt;PRE&gt;sudo su hdfs -l -c 'hdfs dfsadmin -safemode enter'
sudo su hdfs -l -c 'hdfs dfsadmin -saveNamespace'
&lt;/PRE&gt;&lt;P&gt;restart sevices and see hdfs-site.xml&lt;/P&gt;&lt;PRE&gt;cat /etc/hadoop/conf/hdfs-site.xml
&amp;lt;property&amp;gt;
 &amp;lt;name&amp;gt;dfs.replication&amp;lt;/name&amp;gt;
 &amp;lt;value&amp;gt;2&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;You can also check that  Ambari Dashboard HDFS Disk Usage is decreased.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 21:24:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218973#M72326</guid>
      <dc:creator>erkansirin78</dc:creator>
      <dc:date>2017-12-05T21:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change the replication factor from 3 to 2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218974#M72327</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/30172/erkansirin78.html" nodeid="30172" target="_blank"&gt;@Erkan ŞİRİN&lt;/A&gt;&lt;BR /&gt;when i write the above command it give me an error. Please see the image : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="43846-help.jpeg" style="width: 656px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16024i57A391AF9488FE57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="43846-help.jpeg" alt="43846-help.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and is it right that Replication-Factor change effect apply on new file not on old file ? &lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:44:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218974#M72327</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2019-08-18T02:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change the replication factor from 3 to 2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218975#M72328</link>
      <description>&lt;P&gt;Hi, please give the command with root user.&lt;/P&gt;&lt;PRE&gt;[root@namenode~]# sudo su hdfs -l -c 'hdfs dfsadmin -safemode enter'
[root@namenode~]# sudo su hdfs -l -c 'hdfs dfsadmin -saveNamespace'&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Dec 2017 00:29:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218975#M72328</guid>
      <dc:creator>erkansirin78</dc:creator>
      <dc:date>2017-12-07T00:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change the replication factor from 3 to 2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218976#M72329</link>
      <description>&lt;P&gt;Thanks a lot &lt;A rel="user" href="https://community.cloudera.com/users/30172/erkansirin78.html" nodeid="30172"&gt;@Erkan ŞİRİN&lt;/A&gt; this works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;Now how i put the @NameNode into "Normal Mode" ? &lt;BR /&gt;and what the reason to put the @namenode in safeMode ? &lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:53:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218976#M72329</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-07T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change the replication factor from 3 to 2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218977#M72330</link>
      <description>&lt;P&gt;Thanks a lot &lt;A rel="user" href="https://community.cloudera.com/users/30172/erkansirin78.html" nodeid="30172"&gt;@Erkan ŞİRİN&lt;/A&gt; it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; How i put the @namenode into normal mode ? and what is the reason to put the @namenode into safe mode ? &lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:55:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218977#M72330</guid>
      <dc:creator>Learner_1122</dc:creator>
      <dc:date>2017-12-07T15:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to change the replication factor from 3 to 2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218978#M72331</link>
      <description>&lt;P&gt;It is because the way how namenode works. It merges namespace repo (fsimage) periodically with edit logs file. To prevent namespace inconsistency it stops changing namespace by entering safemode. &lt;/P&gt;&lt;PRE&gt;hdfs dfsadmin -safemode leave&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;should work.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:44:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-change-the-replication-factor-from-3-to-2/m-p/218978#M72331</guid>
      <dc:creator>erkansirin78</dc:creator>
      <dc:date>2017-12-07T21:44:17Z</dc:date>
    </item>
  </channel>
</rss>

