<?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: &amp;quot;File /user/root/tmp/test.txt&amp;quot; could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165484#M53753</link>
    <description>&lt;P&gt;Thank You Dear Artem&lt;/P&gt;&lt;P&gt;I followed the tutorial, but when I apply the last command "docker ps", I saw something else&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12231-screenshot-from-2017-02-08-16-11-38.png" style="width: 726px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20378i4163181A0A2E9164/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12231-screenshot-from-2017-02-08-16-11-38.png" alt="12231-screenshot-from-2017-02-08-16-11-38.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I couldn't to connect to VM in Nifi any more. I faced with this error:&lt;/P&gt;&lt;PRE&gt;PutHDFS[id=015a1000-2532-17af-9400-6501c5ca7018] Failed to write to HDFS due to java.io.IOException: Failed on local exception: java.io.IOException: Connection reset by peer; Host Details : local host is: "shanghoosh-All-Series/127.0.1.1"; destination host is: "sandbox.hortonworks.com":8020; : java.io.IOException: Failed on local exception: java.io.IOException: Connection reset by peer; Host Details : local host is: "shanghoosh-All-Series/127.0.1.1"; destination host is: "sandbox.hortonworks.com":8020; &lt;/PRE&gt;</description>
    <pubDate>Sun, 18 Aug 2019 11:18:27 GMT</pubDate>
    <dc:creator>ali_mohammadi</dc:creator>
    <dc:date>2019-08-18T11:18:27Z</dc:date>
    <item>
      <title>"File /user/root/tmp/test.txt" could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165482#M53751</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;First of all, I am new in Hortonworks. I have tried to connect to a remote HDP (actually my hdfs) in VM from NiFi in my local machine. I apply putHDFS processor, but unfortunately I am faced with an error.   &lt;/P&gt;&lt;PRE&gt;org.apache.nifi.processor.exception.ProcessException: IOException thrown from PutHDFS[id=07af2532-015a-1000-acc3-3ed53acfcc7c]: org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /user/root/tmp/test.txt could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.
 at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.chooseTarget4NewBlock(BlockManager.java:1641)
 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getNewBlockTargets(FSNamesystem.java:3198)
 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:3122)
 at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:843)
 at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:500)
 at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
 at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:640)
 at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982)
 at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2313)
 at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2309)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.Subject.doAs(Subject.java:422)
 at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
 at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2307)&lt;/PRE&gt;&lt;P&gt;It should be noted : &lt;/P&gt;&lt;P&gt;I set core_site and hdfs_site XMLs on PutHdfs processor;&lt;/P&gt;&lt;P&gt;Only a NameNode instance is running and it's not in safe-mode;&lt;/P&gt;&lt;P&gt;There is a DataNode instances up and running, and there is no node dead; &lt;/P&gt;&lt;P&gt;Namenode and Datanode instances are both running, but I don't know how they can 
communicate with each other;&lt;/P&gt;&lt;P&gt;I check datanode and namenode logs and i didn't realized anything;&lt;/P&gt;&lt;P&gt;I forwarded 50010 and 8020 ports by using the Virtualbox;&lt;/P&gt;&lt;P&gt;Specified reserved spaces for DataNode instances in 
dfs.datanode.du.reserved is equal 200000000 and the usage of disk is as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12209-screenshot-from-2017-02-08-09-17-30.png" style="width: 1122px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20379i54CC89B7051AE4E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12209-screenshot-from-2017-02-08-09-17-30.png" alt="12209-screenshot-from-2017-02-08-09-17-30.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;My storage status in the Virtualbox is as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12210-screenshot-from-2017-02-08-09-56-49.png" style="width: 338px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20380iD112F8731FD25852/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12210-screenshot-from-2017-02-08-09-56-49.png" alt="12210-screenshot-from-2017-02-08-09-56-49.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;before the error i got another error the same as below:&lt;/P&gt;&lt;PRE&gt;putHDFS[id=07af2532-015a-1000-acc3-3ed53acfcc7c] Failed to write to HDFS due to java.lang.IllegalArgumentException: Compression codec com.hadoop.compression.lzo.LzoCodec not found.: java.lang.IllegalArgumentException: Compression codec com.hadoop.compression.lzo.LzoCodec not found&lt;/PRE&gt;&lt;P&gt;and for solving it, I removed a property (io.compression.codecs) from core_site.xml. Maybe it has caused the error. &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 11:18:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165482#M53751</guid>
      <dc:creator>ali_mohammadi</dc:creator>
      <dc:date>2019-08-18T11:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: "File /user/root/tmp/test.txt" could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165483#M53752</link>
      <description>&lt;P&gt;Try to add the rest of the hdfs ports to port forwarding &lt;/P&gt;&lt;P&gt;&lt;A href="https://ambari.apache.org/1.2.3/installing-hadoop-using-ambari/content/reference_chap2_1.html" target="_blank"&gt;https://ambari.apache.org/1.2.3/installing-hadoop-using-ambari/content/reference_chap2_1.html&lt;/A&gt; and if you are on HDP 2.5 sandbox follow this tutorial to port forward &lt;A href="https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.html" target="_blank"&gt;https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:00:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165483#M53752</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-02-08T20:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: "File /user/root/tmp/test.txt" could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165484#M53753</link>
      <description>&lt;P&gt;Thank You Dear Artem&lt;/P&gt;&lt;P&gt;I followed the tutorial, but when I apply the last command "docker ps", I saw something else&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12231-screenshot-from-2017-02-08-16-11-38.png" style="width: 726px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20378i4163181A0A2E9164/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12231-screenshot-from-2017-02-08-16-11-38.png" alt="12231-screenshot-from-2017-02-08-16-11-38.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I couldn't to connect to VM in Nifi any more. I faced with this error:&lt;/P&gt;&lt;PRE&gt;PutHDFS[id=015a1000-2532-17af-9400-6501c5ca7018] Failed to write to HDFS due to java.io.IOException: Failed on local exception: java.io.IOException: Connection reset by peer; Host Details : local host is: "shanghoosh-All-Series/127.0.1.1"; destination host is: "sandbox.hortonworks.com":8020; : java.io.IOException: Failed on local exception: java.io.IOException: Connection reset by peer; Host Details : local host is: "shanghoosh-All-Series/127.0.1.1"; destination host is: "sandbox.hortonworks.com":8020; &lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 11:18:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165484#M53753</guid>
      <dc:creator>ali_mohammadi</dc:creator>
      <dc:date>2019-08-18T11:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: "File /user/root/tmp/test.txt" could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165485#M53754</link>
      <description>&lt;P&gt;Install Nifi in the same container as sandbox&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 10:53:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165485#M53754</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-02-10T10:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: "File /user/root/tmp/test.txt" could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165486#M53755</link>
      <description>&lt;P&gt;Dear Artem&lt;/P&gt;&lt;P&gt;I tried again and now, I have a remote HDFS.&lt;/P&gt;&lt;P&gt;Thanks a million&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 13:53:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165486#M53755</guid>
      <dc:creator>ali_mohammadi</dc:creator>
      <dc:date>2017-02-12T13:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: "File /user/root/tmp/test.txt" could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165487#M53756</link>
      <description>&lt;P&gt;Notice: some information will be lost when you do what we did.&lt;/P&gt;&lt;P&gt;for example I had a lucidworks but now I should install it again.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 16:55:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/165487#M53756</guid>
      <dc:creator>ali_mohammadi</dc:creator>
      <dc:date>2017-02-12T16:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: "File /user/root/tmp/test.txt" could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/309602#M53757</link>
      <description>&lt;P&gt;I use the HDP 2.6.5 and i can not connect to the sandbox vm. Is there a change in Version 2.6.5?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;Marcel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 16:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/309602#M53757</guid>
      <dc:creator>MarcelG</dc:creator>
      <dc:date>2021-01-13T16:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: "File /user/root/tmp/test.txt" could only be replicated to 0 nodes instead of minReplication (=1).  There are 1 datanode(s) running and 1 node(s) are excluded in this operation.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/309648#M53758</link>
      <description>&lt;P&gt;I find the solution in HDP 2.6.5 the ssh prort for the sandbox vm is the standard port 22.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 06:37:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-File-user-root-tmp-test-txt-quot-could-only-be/m-p/309648#M53758</guid>
      <dc:creator>MarcelG</dc:creator>
      <dc:date>2021-01-14T06:37:58Z</dc:date>
    </item>
  </channel>
</rss>

