Re: When merge cube,get java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method)
Hi Zhimin, Please check my comment in the JIRA. 在 2018年4月4日 下午11:25,ShaoFeng Shi写道: > Hi Zhimin, > > Thanks for the reminder; I will review and merge it. > > 在 2018年4月4日 下午7:01,小村庄 写道: > >> cube中,设计rowkey时,有个维度设置编码方式是固定长度500。每天采用内存构建算法。在合并cube时, >> 在生成的mr中的map任务执行中出现“java.lang.ArrayIndexOutOfBoundsException at >> java.lang.System.arraycopy(Native Method)” 错误。经查看在生成的mr中的map任务中需要对要合并的cub >> oiddata数据的rowkey进行切分,切分时,根据每个维度的编码方式获取对应的长度,然后从rowkey中获取,并赋值 >> 给SplittedBytes的value中,由于value数组初始化时设置的固定值255,所以在切分大于255的维度值时 >> ,出现下标越界错误。相关issue: https://issues.apache.org/jira/ >> projects/KYLIN/issues/KYLIN-3296 >> > > > > -- > Best regards, > > Shaofeng Shi 史少锋 > > -- Best regards, Shaofeng Shi 史少锋
Re: When merge cube,get java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method)
Hi Zhimin, Thanks for the reminder; I will review and merge it. 在 2018年4月4日 下午7:01,小村庄写道: > cube中,设计rowkey时,有个维度设置编码方式是固定长度500。每天采用内存构建算法。在合并cube时,在生成的mr中的map任务执行中出现“ > java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native > Method)” 错误。经查看在生成的mr中的map任务中需要对要合并的cuboiddata数据的rowkey进行切分,切分时, > 根据每个维度的编码方式获取对应的长度,然后从rowkey中获取,并赋值给SplittedBytes的value中, > 由于value数组初始化时设置的固定值255,所以在切分大于255的维度值时,出现下标越界错误。相关issue: https://issues. > apache.org/jira/projects/KYLIN/issues/KYLIN-3296 > -- Best regards, Shaofeng Shi 史少锋
When merge cube??get java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method)
cuberowkey??500??cubemrmapjava.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method)?? mrmapcuboiddata??rowkey??rowkeySplittedBytes??valuevalue255255??issue: https://issues.apache.org/jira/projects/KYLIN/issues/KYLIN-3296