AnsweredAssumed Answered

How can I resolve hbase data import issue?

Question asked by thamizh on Jan 1, 2013
Latest reply on Feb 8, 2013 by aditya
I am using hbase-0.92.2(with hadoop-0.20.2) version of MapR distribution. When I tried to import data from hbase table to hdfs, it ended with below error.
Any help would be appreciated.

13/01/02 06:03:59 INFO mapred.JobClient: Running job: job_201212311508_12957
13/01/02 06:04:00 INFO mapred.JobClient:  map 0% reduce 0%
13/01/02 06:05:05 INFO mapred.JobClient:  map 9% reduce 0%
13/01/02 06:05:06 INFO mapred.JobClient:  map 18% reduce 0%
13/01/02 06:05:13 INFO mapred.JobClient:  map 27% reduce 0%
13/01/02 06:05:23 INFO mapred.JobClient:  map 36% reduce 0%
13/01/02 06:05:43 INFO mapred.JobClient:  map 45% reduce 0%
13/01/02 06:05:50 INFO mapred.JobClient:  map 54% reduce 0%
13/01/02 06:06:06 INFO mapred.JobClient: Task Id : attempt_201212311508_12957_m_000006_0, Status : FAILED on node hst-gti-grid093.scur.colo
org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=10, exceptions:
Wed Jan 02 06:05:22 UTC 2013, org.apache.hadoop.hbase.client.ScannerCallable@7a674818, java.io.IOException: java.io.IOException: java.lang.StringIndexOutOfBoundsException: String index out of range: -12
        at org.apache.hadoop.hbase.regionserver.HRegionServer.convertThrowableToIOE(HRegionServer.java:1083)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.convertThrowableToIOE(HRegionServer.java:1072)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.next(HRegionServer.java:2189)
        at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1336)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -12
        at java.lang.String.checkBounds(String.java:397)
        at java.lang.String.<init>(String.java:442)
        at org.apache.hadoop.hbase.util.Bytes.toStringBinary(Bytes.java:342)
        at org.apache.hadoop.hbase.KeyValue.keyToString(KeyValue.java:655)
        at org.apache.hadoop.hbase.KeyValue.toString(KeyValue.java:609)
        at java.lang.String.valueOf(String.java:2826)
        at java.lang.StringBuilder.append(StringBuilder.java:115)
        at org.apache.hadoop.hbase.regionserver.StoreScanner.next(StoreScanner.java:266)
        at org.apache.hadoop.hbase.regionserver.KeyValueHeap.next(KeyValueHeap.java:138)
        at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextInternal(HRegion.java:3025)
        at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRegion.java:2972)
        at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRegion.java:2989)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.next(HRegionServer.java:2162)
        ... 5 more

Wed Jan 02 06:05:23 UTC 2013, org.apache.hadoop.hbase.client.ScannerCallable@7a674818, java.io.IOException: java.io.IOException: java.lang.IllegalArgumentException: offset (66510) + length (2) exceed the capacity of the array: 66511
        at org.apache.hadoop.hbase.regionserver.HRegionServer.convertThrowableToIOE(HRegionServer.java:1083)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.convertThrowableToIOE(HRegionServer.java:1072)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.next(HRegionServer.java:2189)
        at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1336)

Outcomes