Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hbase Importtsv with error 'org.apache.hadoop.hbase.TableNotFoundException: hbase:labels'

Highlighted

Hbase Importtsv with error 'org.apache.hadoop.hbase.TableNotFoundException: hbase:labels'

New Contributor

I use the follow CMD for 'hbase import data',but the CMD does not work: hadoop jar /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase/hbase-server-1.2.0-cdh5.10.0.jar importtsv -Dimporttsv.columns=HBASE_ROW_KEY,f:q,f:q1 table /HbaseTest '-Dimporttsv.separator=^A'

 

2017-03-01 14:10:26,328 INFO [main-SendThread(hadoop102:2181)] org.apache.zookeeper.ClientCnxn: Session establishment complete on server hadoop102/10.10.2.10:2181, sessionid = 0x15a13648429be7b, negotiated timeout = 60000 2017-03-01 14:10:26,728 ERROR [main] org.apache.hadoop.hbase.mapreduce.DefaultVisibilityExpressionResolver: Error scanning 'labels' table org.apache.hadoop.hbase.TableNotFoundException: hbase:labels at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1404) at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1199) at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:315) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:157) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:61) 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.(ClientScanner.java:155) at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:867) at org.apache.hadoop.hbase.mapreduce.DefaultVisibilityExpressionResolver.init(DefaultVisibilityExpressionResolver.java:91) at org.apache.hadoop.hbase.mapreduce.CellCreator.(CellCreator.java:48) at org.apache.hadoop.hbase.mapreduce.TsvImporterMapper.setup(TsvImporterMapper.java:108) at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142) 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:1796) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158) 2017-03-01 14:10:26,731 INFO [main] org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x15a13648429be7b 2017-03-01 14:10:26,750 INFO [main] org.apache.zookeeper.ZooKeeper: Session: 0x15a13648429be7b closed

1 REPLY 1

Re: Hbase Importtsv with error 'org.apache.hadoop.hbase.TableNotFoundException: hbase:labels'

Super Collaborator

Well first question :

- Do you have an already existing HBase table named 'table' inside the namespace 'default' ?

 

What is the output of the following command inside hbase shell :

list_namespace_tables 'default'

 

Don't have an account?
Coming from Hortonworks? Activate your account here