<?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: hdfs fs -setrep -w 3 fails and Target Replicas is 3 but found 2 live replica(s), 0 decommissione in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54388#M56535</link>
    <description>&lt;P&gt;&lt;SPAN&gt;hdfs fs -setrep -w 2 / is working ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if i have 3 datanodes can i replicate to 4&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 06:14:17 GMT</pubDate>
    <dc:creator>abhi86865</dc:creator>
    <dc:date>2017-05-04T06:14:17Z</dc:date>
    <item>
      <title>hdfs fs -setrep -w 3 fails and Target Replicas is 3 but found 2 live replica(s), 0 decommissioned</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54385#M56532</link>
      <description>&lt;P&gt;hdfs fs -setrep -w 3 fails and Target Replicas is 3 but found 2 live replica(s), 0 decommissioned&amp;nbsp;replica(s) and 0 decommissioning replica(s).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hadoop fs -setrep -w 3 /&lt;BR /&gt;^C[root@host1 ~]# hadoop fs -setrep -w 3 /user/root/ml-20m/genome-scores.csv&lt;BR /&gt;Replication 3 set: /user/root/ml-20m/genome-scores.csv&lt;BR /&gt;Waiting for /user/root/ml-20m/genome-scores.csv ........^C[root@host1 ~]# hadoop fs -setrep -w 3 /user/root/ml-20m/genome-scores.csv&lt;BR /&gt;Replication 3 set: /user/root/ml-20m/genome-scores.csv&lt;BR /&gt;Waiting for /user/root/ml-20m/genome-scores.csv ........................................................................................................................................................................................................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs fsck /user/root/ml-20m/genome-scores.csv -files -blocks -locations&lt;BR /&gt;Connecting to namenode via &lt;A href="http://host1.cloudera.com:50070" target="_blank"&gt;http://host1.cloudera.com:50070&lt;/A&gt;&lt;BR /&gt;FSCK started by root (auth:SIMPLE) from /172.31.32.255 for path /user/root/ml-20m/genome-scores.csv at Thu May 04 04:57:20 UTC 2017&lt;BR /&gt;/user/root/ml-20m/genome-scores.csv 323544381 bytes, 3 block(s): Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745713_4889. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;BR /&gt;Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745714_4890. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;BR /&gt;Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745715_4891. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;BR /&gt;0. BP-1580841952-172.31.32.255-1493753849966:blk_1073745713_4889 len=134217728 Live_repl=2 [DatanodeInfoWithStorage[172.31.63.45:50010,DS-c9f8ac9f-97fc-4547-a5c5-a5373055a50d,DISK], DatanodeInfoWithStorage[172.31.56.160:50010,DS-741c0afe-1496-4e6e-9662-b83677d6e0dc,DISK]]&lt;BR /&gt;1. BP-1580841952-172.31.32.255-1493753849966:blk_1073745714_4890 len=134217728 Live_repl=2 [DatanodeInfoWithStorage[172.31.56.160:50010,DS-741c0afe-1496-4e6e-9662-b83677d6e0dc,DISK], DatanodeInfoWithStorage[172.31.63.45:50010,DS-c9f8ac9f-97fc-4547-a5c5-a5373055a50d,DISK]]&lt;BR /&gt;2. BP-1580841952-172.31.32.255-1493753849966:blk_1073745715_4891 len=55108925 Live_repl=2 [DatanodeInfoWithStorage[172.31.63.45:50010,DS-c9f8ac9f-97fc-4547-a5c5-a5373055a50d,DISK], DatanodeInfoWithStorage[172.31.56.160:50010,DS-741c0afe-1496-4e6e-9662-b83677d6e0dc,DISK]]&lt;/P&gt;&lt;P&gt;Status: HEALTHY&lt;BR /&gt;Total size: 323544381 B&lt;BR /&gt;Total dirs: 0&lt;BR /&gt;Total files: 1&lt;BR /&gt;Total symlinks: 0&lt;BR /&gt;Total blocks (validated): 3 (avg. block size 107848127 B)&lt;BR /&gt;Minimally replicated blocks: 3 (100.0 %)&lt;BR /&gt;Over-replicated blocks: 0 (0.0 %)&lt;BR /&gt;Under-replicated blocks: 3 (100.0 %)&lt;BR /&gt;Mis-replicated blocks: 0 (0.0 %)&lt;BR /&gt;Default replication factor: 3&lt;BR /&gt;Average block replication: 2.0&lt;BR /&gt;Corrupt blocks: 0&lt;BR /&gt;Missing replicas: 3 (33.333332 %)&lt;BR /&gt;Number of data-nodes: 2&lt;BR /&gt;Number of racks: 1&lt;BR /&gt;FSCK ended at Thu May 04 04:57:20 UTC 2017 in 3 milliseconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs dfs -setrep&lt;BR /&gt;-setrep: Not enough arguments: expected 2 but got 0&lt;BR /&gt;Usage: hadoop fs [generic options] -setrep [-R] [-w] &amp;lt;rep&amp;gt; &amp;lt;path&amp;gt; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs fsck /&lt;/P&gt;&lt;P&gt;/user/root/penndtch.1: Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745711_4887. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;BR /&gt;.&lt;BR /&gt;/user/root/psd7003.xml: Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745703_4879. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;/P&gt;&lt;P&gt;/user/root/psd7003.xml: Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745704_4880. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;/P&gt;&lt;P&gt;/user/root/psd7003.xml: Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745705_4881. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;/P&gt;&lt;P&gt;/user/root/psd7003.xml: Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745706_4882. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;/P&gt;&lt;P&gt;/user/root/psd7003.xml: Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745707_4883. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;/P&gt;&lt;P&gt;/user/root/psd7003.xml: Under replicated BP-1580841952-172.31.32.255-1493753849966:blk_1073745708_4884. Target Replicas is 3 but found 2 live replica(s), 0 decommissioned replica(s) and 0 decommissioning replica(s).&lt;/P&gt;&lt;P&gt;.Status: HEALTHY&lt;BR /&gt;Total size: 3184936505 B&lt;BR /&gt;Total dirs: 417&lt;BR /&gt;Total files: 1986&lt;BR /&gt;Total symlinks: 0&lt;BR /&gt;Total blocks (validated): 1994 (avg. block size 1597260 B)&lt;BR /&gt;Minimally replicated blocks: 1994 (100.0 %)&lt;BR /&gt;Over-replicated blocks: 0 (0.0 %)&lt;BR /&gt;Under-replicated blocks: 20 (1.0030091 %)&lt;BR /&gt;Mis-replicated blocks: 0 (0.0 %)&lt;BR /&gt;Default replication factor: 3&lt;BR /&gt;Average block replication: 2.0&lt;BR /&gt;Corrupt blocks: 0&lt;BR /&gt;Missing replicas: 20 (0.499002 %)&lt;BR /&gt;Number of data-nodes: 2&lt;BR /&gt;Number of racks: 1&lt;BR /&gt;FSCK ended at Thu May 04 05:49:14 UTC 2017 in 123 milliseconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am using cloudera 5.10.1&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1 namenode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1 secondary namenode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2 data nodes&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="header-column"&gt;&lt;DIV class="display-name"&gt;Replication Factor&lt;/DIV&gt;&lt;DIV class="property-name"&gt;dfs.replication&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="control-column-expanded"&gt;&lt;DIV class="value-entry"&gt;&lt;DIV class="context-container"&gt;&lt;SPAN class="context-label"&gt;HDFS (Service-Wide)&lt;/SPAN&gt;&lt;DIV class="context-controls"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="value-entry"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="value-entry"&gt;can any help me why it is failing to replicate to 3.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:33:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54385#M56532</guid>
      <dc:creator>abhi86865</dc:creator>
      <dc:date>2022-09-16T11:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs fs -setrep -w 3 fails and Target Replicas is 3 but found 2 live replica(s), 0 decommissione</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54386#M56533</link>
      <description>Two DataNodes cannot carry 3 replicas as each replica must reside on a&lt;BR /&gt;unique DataNode host. Either add a third DataNode, or change the&lt;BR /&gt;replication factor to 2 to match your DataNode count.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2017 06:00:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54386#M56533</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2017-05-04T06:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs fs -setrep -w 3 fails and Target Replicas is 3 but found 2 live replica(s), 0 decommissione</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54388#M56535</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hdfs fs -setrep -w 2 / is working ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if i have 3 datanodes can i replicate to 4&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 06:14:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54388#M56535</guid>
      <dc:creator>abhi86865</dc:creator>
      <dc:date>2017-05-04T06:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs fs -setrep -w 3 fails and Target Replicas is 3 but found 2 live replica(s), 0 decommissione</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54389#M56536</link>
      <description>The general rule is that N replicas require N DataNodes to be placed. So you cannot have 4 living replicas on a cluster of 3 DataNodes.&lt;BR /&gt;&lt;BR /&gt;In such a case, you'd only observe 3 live replicas, and the block will be marked under-replicated (with target required as 4 but live possibility capping at 3), just like your previous situation. The file should still be readable/writable though.</description>
      <pubDate>Thu, 04 May 2017 06:26:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54389#M56536</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2017-05-04T06:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs fs -setrep -w 3 fails and Target Replicas is 3 but found 2 live replica(s), 0 decommissione</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54416#M56537</link>
      <description>&lt;P&gt;i have added one node and tried hadoop fs -setrep -w 3 /&lt;/P&gt;&lt;P&gt;it is working.....&lt;/P&gt;&lt;P&gt;no under Replicas.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 20:20:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hdfs-fs-setrep-w-3-fails-and-Target-Replicas-is-3-but-found/m-p/54416#M56537</guid>
      <dc:creator>abhi86865</dc:creator>
      <dc:date>2017-05-04T20:20:30Z</dc:date>
    </item>
  </channel>
</rss>

