调用hbaseh官方包报错java.lang.ArrayIndexOutOfBoundsException: 2?

bossCD
  • 5
新手上路,请多包涵

在hbase中建立一张空表test,调用官方包的rowcount方法报错,错误如下:
image.png
[rootename0lheatmap]#hadoopjar/data/hdfs/hbase-1.3.1/lib/hbase-server-1.3.1.jarrowcountertest
SLF4]:Class path contains multiple SLF4Jbindings.
SLF4J:Found binding in [iar:file:/data/hdfs/hadoop-2.6.4/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4]:Found binding in [jar:file:/data/hdfs/hbase-1.3.1/lib/slf4j-10g4j12-1.7.5.jar!/org/slf4j/impl/staticLoggerBinder.class]
SLF4J:See http://ww.slf4j.org/codes.htm... for an explanation.
SLF4]:Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
21/10/1415:20:47INFO client.RMProxy:Connecting to ResourceManager atname01/10.0.20.58:8032
21/10/1415:20:48INFO zookeeper.RecoverableZooKeeper:Processidentifier=hconnection-0xc35af2aconnecting to ZooKeeper ensemble=name01:2181,name02:2181.data03:2181
21/10/1415:20:48 INFO z00keeper.ZooKeeper:Client environment:zookeeper.version=3.4.6-1569965,builton 02/20/201409:09GMT
21/10/1415:20:48 INFO zookeeper.ZooKeeper: CLient environment:host.name=name01
21/10/1415:20:48 INFO z0okeeper.Z0oKeeper: CLient environment:java.version=1.8.0131
21/10/1415:20:48INFO zookeeper.ZooKeeper: CLient enviromment:java.vendor=Oracle Corporation
21/10/1415:20:48INFO z00keeper.ZooKeeper: CLient environment:java.home=/usr/java/idk1.8.013l/ire

image.png
21/10/1415:20:48 INFO mapreduce.JobSubmitter:number of splits:1
21/10/1415:20:48 INFO Confiquration.deprecation:io.bytes.per.checksum is deprecated.Instead,use dfs.bytes-per-checksum
21/10/1415:20:48INFO mapreduce.JobSubmitter:Submitting tokens forjob:job_1634123528723_0013
21/10/1415:20:48 INFO impl.YarnClientImpl:Submitted application application 16341235287230013
21/10/1415:20:48 INFO mapreduce.Job:The url to track thejob:http://name01:8088/proxy/appl... 0013/
21/10/1415:20:48INFOmapreduce.Job:Runningjob:j0b16341235287230013
21/10/1415:20:52 INFO mapreduce.Job:Job job_1634123528723_0013running in uber mode:false
21/10/1415:20:52INFO mapreduce.Job:map reduce
21/10/1415:20:55INFO mapreduce.Job:Task Id:attempt_1634123528723_0013m_0000000,Status:FAILED
Error:java.lang.ArrayIndexOutofBoundsException:2

   at org.apache.hadoop.hbase.mapreduce.TableSplitsVersion.fromCode(TableSplit.java:75)
   atorg.apache.hadoop.hbase.mapreduce.Tablesplit.readFields(TableSplit.java:277
   atorg.apache.hadoop.io.serializer.WritableSerializationswritableDeserializer.deserialize(WritableSerialization.java:71
   at org.apache.hadoop.io.serializer.WritableSerializationswritableDeserializer.deserialize(writableSerialization.java:42)
   atorg.apache.hadoop.mapred.MapTask.getSplitDetails(MapTask.java:372)
   atorg.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:751)
   atorg.apache.hadoop.mapred.MapTask.run(MapTask.java:341
   atorg.apache.hadoop.mapred.YarnChilds2.run(YarnChild.java:163)
   atjava.security.AccessController.doPrivileged(Native Method)
   atjavax.security.auth.Subject.doAs(Subject.java:422)
   atorg.apache.hadoop.security.UserGroupInfomation.doAs(UserGroupInfomation.java:1656)

hbase中表结构如下:
image.png
hbase(main):021:6describe test
Table test iS ENABLED
test
COLUHNFAMILIESDESCRIPTION
NAMEinfo,BLOOMFILTER > ROW,VERSIONS >1,INMEMORYfalse,KEEPDELETED CELLSFALSE',DATABLOCKENCODINGNONE',TTLFOREVER,COMPRESSIONNONE',MINVERSIONS,BLOCKCACHEtrue
BLOCKSIZE= 65536,REPLICATIONSCOPE=
1row(s)in0.0110seconds
hbase(main):022:0scantest
ROW COLUMNHCELL
0row(s)in0.0130seconds
希望有遇到相同问题的大佬能提供下解决办法。。

回复
阅读 109
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏