FAQ - 写入hbase 报ArrayIndexOutOfBoundsException: 1

问题描述/异常栈
23/06/26 14:47:56 ERROR ApplicationMaster: User class threw exception: java.lang.ArrayIndexOutOfBoundsException: 1 java.lang.ArrayIndexOutOfBoundsException: 1 at com.netease.music.da.transfer.hbase.Utils$.getColumnQualifierAsBytes(Utils.scala:91) at com.netease.music.da.transfer.hbase.writer.HBaseWriter$$anonfun$bulkload$1.apply$mcVI$sp(HBaseWriter.scala:68) at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:160) at com.netease.music.da.transfer.hbase.writer.HBaseWriter.bulkload(HBaseWriter.scala:64) at com.netease.music.da.transfer.hbase.writer.HBaseWriter.doWrite(HBaseWriter.scala:199) at com.netease.music.da.transfer.common.writer.AbstractDataWriter.write(AbstractDataWriter.scala:16) at com.netease.music.da.transfer.common.Worker$.main(Worker.scala:96) at com.netease.music.da.transfer.common.Worker.main(Worker.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:678)
发现版本
easytransfer 3.5.1.2
解决方案
1、使用自定义表达式,别名需要加上列族
FAQ - 写入hbase 报ArrayIndexOutOfBoundsException: 1 - 图1
问题原因
用户自定义表达式使用错误,未as 去向端 FAQ - 写入hbase 报ArrayIndexOutOfBoundsException: 1 - 图2

作者:林帅