AnsweredAssumed Answered

hbase import error

Question asked by Punith on Apr 17, 2017
Latest reply on Apr 24, 2017 by maprcommunity

hi,

 i try to import hdfs table to hbase but it getting error..

command :

 

[test1@nn hbase-1.1.8]$ bin/hbase org.apache.hadoop.hbase.mapreduce.Import 'pet' '/prava/pet'

 

2017-04-18 12:00:28,429 INFO  [main] mapreduce.Job: Task Id : attempt_1492494601934_0002_m_000000_2, Status : FAILED
Error: java.lang.RuntimeException: Error occurred while instantiating com.mapr.fs.hbase.HTableImpl11.
==> org.apache.hadoop.hbase.TableNotFoundException.
    at org.apache.hadoop.hbase.client.mapr.GenericHFactory.getImplementorInstance(GenericHFactory.java:40)
    at org.apache.hadoop.hbase.client.HTable.createMapRTable(HTable.java:567)
    at org.apache.hadoop.hbase.client.BufferedMutatorImpl.<init>(BufferedMutatorImpl.java:126)
    at org.apache.hadoop.hbase.client.BufferedMutatorImpl.<init>(BufferedMutatorImpl.java:77)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.getBufferedMutator(ConnectionManager.java:780)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.getBufferedMutator(ConnectionManager.java:785)
    at org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.<init>(TableOutputFormat.java:100)
    at org.apache.hadoop.hbase.mapreduce.TableOutputFormat.getRecordWriter(TableOutputFormat.java:146)
    at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.<init>(MapTask.java:656)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:776)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:346)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163)
    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:1595)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.apache.hadoop.hbase.client.mapr.GenericHFactory.getImplementorInstance(GenericHFactory.java:37)
    ... 15 more
Caused by: org.apache.hadoop.hbase.TableNotFoundException
    at com.mapr.fs.hbase.HTableImpl.<init>(HTableImpl.java:99)
    at com.mapr.fs.hbase.HTableImpl11.<init>(HTableImpl11.java:57)
    ... 20 more
Caused by: java.io.FileNotFoundException: /pet
    at com.mapr.fs.MapRClientImpl.openTable(MapRClientImpl.java:951)
    at com.mapr.fs.MapRFileSystem.openTable(MapRFileSystem.java:3172)
    at com.mapr.fs.MapRHTable.init(MapRHTable.java:98)
    at com.mapr.fs.hbase.HTableImpl.<init>(HTableImpl.java:94)
    ... 21 more

 

Container killed by the ApplicationMaster.
Container killed on request. Exit code is 143
Container exited with a non-zero exit code 143

 

2017-04-18 12:00:28,433 INFO  [main] mapreduce.Job: Job job_1492494601934_0002 failed with state FAILED due to: Task failed task_1492494601934_0002_m_000000
Job failed as tasks failed. failedMaps:1 failedReduces:0

 

2017-04-18 12:00:28,436 INFO  [main] mapreduce.Job: Counters: 10
    Job Counters
        Failed map tasks=4
        Launched map tasks=4
        Other local map tasks=3
        Data-local map tasks=1
        Total time spent by all maps in occupied slots (ms)=6063
        Total time spent by all reduces in occupied slots (ms)=0
        Total time spent by all map tasks (ms)=6063
        Total vcore-seconds taken by all map tasks=6063
        Total megabyte-seconds taken by all map tasks=6208512
        DISK_MILLIS_MAPS=3033

 

thanks

punith vp

Outcomes