FAQ - 写入hbase 报ArrayIndexOutOfBoundsException: 1
更新时间: 2024-03-11 02:44:14
阅读 698
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、使用自定义表达式,别名需要加上列族问题原因
用户自定义表达式使用错误,未as 去向端作者:林帅
文档反馈
以上内容对您是否有帮助?