【持续更新】工单常见问题看这里!可能会有你想知道的!
运行默认程序,报java.lang.ArithmeticExceptionbyzero
按照文档
搭建
环境
,运行默认的分词程序,出现
java
.lang.RuntimeException: java.lang.ArithmeticException: / by zero
Exception in thread 'main' java.lang.RuntimeException: java.lang.ArithmeticException: / by zero
at com.aliyun.odps.mapred.LocalJobRunner.submit(LocalJobRunner.java:94)
at com.aliyun.odps.mapred.JobClient.submitJob(JobClient.java:157)
at com.aliyun.odps.mapred.JobClient.runJob(JobClient.java:60)
at my.test.JobLauncher.main(JobLauncher.java:480)
Caused by: java.lang.ArithmeticException: / by zero
at com.aliyun.odps.mapred.local.MapOutputBuffer.getPartition(MapOutputBuffer.java:102)
at com.aliyun.odps.mapred.local.MapOutputBuffer.add(MapOutputBuffer.java:106)
at com.aliyun.odps.mapred.local.MapDriver$ProxiedMapContextImpl$CombinerContextImpl.write(MapDriver.java:231)
at my.test.MyCombiner.reduce(MyCombiner.java:30)
at com.aliyun.odps.mapred.local.MapDriver$ProxiedMapContextImpl.close(MapDriver.java:274)
at com.aliyun.odps.mapred.local.MapDriver.run(MapDriver.java:317)
at com.aliyun.odps.mapred.LocalJobRunner.handleNonPipeMode(LocalJobRunner.java:234)
at com.aliyun.odps.mapred.LocalJobRunner.runJob(LocalJobRunner.java:113)
at com.aliyun.odps.mapred.LocalJobRunner.submit(LocalJobRunner.java:91)
... 3 more
没改过程序。
-------------------------
回2楼moye14的帖子
已解决哈。。改('yyyymmdd')
赞0
踩0