<?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: how can i copy hbase data from replication set cluster to  ec cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369029#M240349</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104707"&gt;@Eren&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our HBase experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80648"&gt;@blizano&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/47030"&gt;@pajoshi&lt;/a&gt;&amp;nbsp;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 15:03:12 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2023-04-20T15:03:12Z</dc:date>
    <item>
      <title>how can i copy hbase data from replication set cluster to  ec cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/368999#M240332</link>
      <description>&lt;P&gt;hello guys, I need to copy hbase data from&amp;nbsp;replication set cluster to ec cluster, i have tried hbase snapshot export and hadoop distcp ,they look like throw the same error:&amp;nbsp;Not replicated yet, i think this was caused by when they transporting ,they will check if destination cluster&amp;nbsp;replication num was same as&amp;nbsp;local, but ignore if&amp;nbsp;destination&amp;nbsp;cluster used&amp;nbsp;replication set. how can i do it ,thx.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is all the errors.&lt;/P&gt;&lt;P&gt;snapshot export:&lt;/P&gt;&lt;P&gt;2023-04-19 19:44:10,199 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: BLOCK* blk_-9223372036854751104_9943 is COMMITTED but not COMPLETE(numNodes= 5 &amp;gt;= minimum = 3) in file /hbase/archive/data/default/test/09748ed90d0d58c0fe7ac4b3c08f3cd4/cf/e35fadd88d244766800728318ccea508&lt;BR /&gt;2023-04-19 19:44:10,200 INFO org.apache.hadoop.ipc.Server: IPC Server handler 5 on 8020, call Call#31 Retry#0 org.apache.hadoop.hdfs.protocol.ClientProtocol.addBlock from 172.31.0.146:52210&lt;BR /&gt;org.apache.hadoop.hdfs.server.namenode.NotReplicatedYetException: Not replicated yet: /hbase/archive/data/default/test/09748ed90d0d58c0fe7ac4b3c08f3cd4/cf/e35fadd88d244766800728318ccea508&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSDirWriteFileOp.validateAddBlock(FSDirWriteFileOp.java:181)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:2661)&lt;BR /&gt;at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:872)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:550)&lt;BR /&gt;at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)&lt;BR /&gt;at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:523)&lt;BR /&gt;at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:991)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:869)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:815)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)&lt;BR /&gt;at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2675)&lt;/P&gt;&lt;P&gt;hadoop distcp:&lt;/P&gt;&lt;P&gt;java.io.IOException: Unable to close file because the last block does not have enough number of replicas.&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSOutputStream.completeFile(DFSOutputStream.java:2521)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSOutputStream.closeImpl(DFSOutputStream.java:2482)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSOutputStream.close(DFSOutputStream.java:2447)&lt;BR /&gt;at org.apache.hadoop.fs.FSDataOutputStream$PositionCache.close(FSDataOutputStream.java:72)&lt;BR /&gt;at org.apache.hadoop.fs.FSDataOutputStream.close(FSDataOutputStream.java:106)&lt;BR /&gt;at java.io.FilterOutputStream.close(FilterOutputStream.java:159)&lt;BR /&gt;at org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.copyBytes(RetriableFileCopyCommand.java:258)&lt;BR /&gt;at org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.copyToFile(RetriableFileCopyCommand.java:183)&lt;BR /&gt;at org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.doCopy(RetriableFileCopyCommand.java:123)&lt;BR /&gt;at org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.doExecute(RetriableFileCopyCommand.java:99)&lt;BR /&gt;at org.apache.hadoop.tools.util.RetriableCommand.execute(RetriableCommand.java:87)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 09:58:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/368999#M240332</guid>
      <dc:creator>Eren</dc:creator>
      <dc:date>2023-04-20T09:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: how can i copy hbase data from replication set cluster to  ec cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369029#M240349</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104707"&gt;@Eren&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our HBase experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80648"&gt;@blizano&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/47030"&gt;@pajoshi&lt;/a&gt;&amp;nbsp;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:03:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369029#M240349</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-04-20T15:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: how can i copy hbase data from replication set cluster to  ec cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369054#M240361</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104707"&gt;@Eren&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mabe this kb can be useful&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Customer/HDFS-write-occasionally-fails-with-error-message-quot-Unable/ta-p/81420" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Customer/HDFS-write-occasionally-fails-with-error-message-quot-Unable/ta-p/81420&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The block chain replication for HDFS does not seem to be able to complete:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;snapshot export:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;2023-04-19 19:44:10,199 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: BLOCK* blk_-9223372036854751104_9943 is COMMITTED but not COMPLETE(numNodes= 5 &amp;gt;= minimum = 3) in file /hbase/archive/data/default/test/09748ed90d0d58c0fe7ac4b3c08f3cd4/cf/e35fadd88d244766800728318ccea508
2023-04-19 19:44:10,200 INFO org.apache.hadoop.ipc.Server: IPC Server handler 5 on 8020, call Call#31 Retry#0 org.apache.hadoop.hdfs.protocol.ClientProtocol.addBlock from 172.31.0.146:52210
….

hadoop distcp:

java.io.IOException: Unable to close file because the last block does not have enough number of replicas.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then make sure that the destination cluster has enough number of datanodes available and with space based on the replication factor or the hbase file, in this case&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;/hbase/archive/data/default/test/09748ed90d0d58c0fe7ac4b3c08f3cd4/cf/e35fadd88d244766800728318ccea508&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;You can reconfirm the RF of the file by running any of the following commands:&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;STRONG&gt;hdfs fsck&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;STRONG&gt;/hbase/archive/data/default/test/09748ed90d0d58c0fe7ac4b3c08f3cd4/cf/e35fadd88d244766800728318ccea508&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;EM&gt;hdfs dfs -ls&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;EM&gt;/hbase/archive/data/default/test/09748ed90d0d58c0fe7ac4b3c08f3cd4/cf/e35fadd88d244766800728318ccea508.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;In the last one, the second column will tell the RF applied to the file.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;You can also check in the destination cluster if the datanodes are distributed in racks, if so, check that each rack has enough number of datanodes available and with space.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 19:34:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369054#M240361</guid>
      <dc:creator>blizano</dc:creator>
      <dc:date>2023-04-20T19:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: how can i copy hbase data from replication set cluster to  ec cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369064#M240363</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;A class="dcxa-lithium-link" href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80648" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;blizano ,&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;thanks for reply,&amp;nbsp;&lt;FONT&gt;&lt;SPAN&gt;im sure this issue is caused by ec&amp;nbsp;Policy, if i unset ec on /hbase, hbase snapshot export works. and&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;i have tried set&amp;nbsp;&lt;STRONG&gt;&lt;FONT&gt;dfs.client.block.write.locateFollowingBlock.retries&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT&gt;to 10 , but it's not useful, that&amp;nbsp;&lt;SPAN&gt;throw the same error as before.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;and i run&amp;nbsp;fsck, it shows:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT&gt;/hbase/.hbase-snapshot/test_snapshot/.snapshotinfo: Under replicated BP-870847850-192.168.30.174-1680829859143:blk_-9223372036854767824_8445. Target Replicas is 3 but found 1 live replica(s), 0 decommissioned replica(s), 0 decommissioning replica(s)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/hbase/.hbase-snapshot/test_snapshot/data.manifest: Under replicated BP-870847850-192.168.30.174-1680829859143:blk_-9223372036854767808_8446. Target Replicas is 3 but found 1 live replica(s), 0 decommissioned replica(s), 0 decommissioning replica(s).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in fact my&amp;nbsp;&lt;STRONG&gt;Target Replicas &lt;/STRONG&gt;is not 3 , because i have set ec on /hbase . and i tried set&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;dfs.replication&lt;/STRONG&gt; to 1 ,it not useful too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i run du on &lt;STRONG&gt;/hbase/archive/data/default/test/&amp;nbsp;&lt;/STRONG&gt;,it shows&amp;nbsp;1.1 M&amp;nbsp; 384 M, this is strange,&amp;nbsp;original file is only 1.1M,but t&lt;/SPAN&gt;otal size is&amp;nbsp;&lt;SPAN&gt;384 M.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 02:37:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369064#M240363</guid>
      <dc:creator>Eren</dc:creator>
      <dc:date>2023-04-21T02:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: how can i copy hbase data from replication set cluster to  ec cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369075#M240368</link>
      <description>&lt;P&gt;i fix this issue by run command on&amp;nbsp;&lt;SPAN&gt;destination cluster,i think it caused by&amp;nbsp;original version is too old to support ec (hadoop-2.7.5)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 10:00:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-can-i-copy-hbase-data-from-replication-set-cluster-to-ec/m-p/369075#M240368</guid>
      <dc:creator>Eren</dc:creator>
      <dc:date>2023-04-21T10:00:50Z</dc:date>
    </item>
  </channel>
</rss>

