Reply
Highlighted
New Contributor
Posts: 3
Registered: ‎06-09-2016

bin/hbase org.apache.hadoop.hbase.mapreduce.SyncTable failing with IOStreams Exception

This is the command that I am attempting with the resulting error:

 

$ hbase org.apache.hadoop.hbase.mapreduce.SyncTable --dryrun=true --sourcezkcluster=<enter zk quorum>:<hbase port>:/hbase hdfs://<enter active namenode>:<nn port>/hashes/img img img

 

 

Error: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the location
        at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:316)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156)
        at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60)
        at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
        at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:320)
        at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:295)
        at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:160)
        at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:155)
        at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:867)
        at org.apache.hadoop.hbase.mapreduce.SyncTable$SyncMapper.syncRange(SyncTable.java:313)
        at org.apache.hadoop.hbase.mapreduce.SyncTable$SyncMapper.finishBatchAndCompareHashes(SyncTable.java:291)
        at org.apache.hadoop.hbase.mapreduce.SyncTable$SyncMapper.moveToNextBatch(SyncTable.java:254)
        at org.apache.hadoop.hbase.mapreduce.SyncTable$SyncMapper.map(SyncTable.java:233)
        at org.apache.hadoop.hbase.mapreduce.SyncTable$SyncMapper.map(SyncTable.java:150)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
        at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1709)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
Caused by: java.io.IOException: Could not set up IO Streams to <enter hostname>

 

If HBase replication is working fine between the two clusters, and I am running this SyncTable command as a kinited super user (hbase), why is this command failing with these exceptions? Any idea?

Announcements