When I got this error it was because I didn't have the input file in the correct form. Check especially the last line, your last line can not be a black space.
On Mon, Jul 27, 2015 at 8:09 PM, Suman Somasundar < [email protected]> wrote: > Hi, > > > > I am getting the following error when I try to ALS. > > I get this exception at userRatings job after the itemRatings job. > > > > 15/07/24 18:11:01 INFO mapreduce.Job: Task Id : > attempt_1437779248212_0003_m_000064_6, Status : FAILED > > Error: java.lang.ArrayIndexOutOfBoundsException: -718978944 > > at > org.apache.hadoop.io.WritableComparator.readInt(WritableComparator.java:211) > > at > org.apache.hadoop.io.IntWritable$Comparator.compare(IntWritable.java:91) > > at > org.apache.hadoop.mapred.MapTask$MapOutputBuffer.compare(MapTask.java:1265) > > at org.apache.hadoop.util.QuickSort.sortInternal(QuickSort.java:99) > > at org.apache.hadoop.util.QuickSort.sort(QuickSort.java:63) > > at > org.apache.hadoop.mapred.MapTask$MapOutputBuffer.sortAndSpill(MapTask.java:1594) > > at > org.apache.hadoop.mapred.MapTask$MapOutputBuffer.flush(MapTask.java:1482) > > at > org.apache.hadoop.mapred.MapTask$NewOutputCollector.close(MapTask.java:720) > > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:790) > > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) > > at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:169) > > at java.security.AccessController.doPrivileged(Native Method) > > at javax.security.auth.Subject.doAs(Subject.java:415) > > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1640) > > at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:164) > > > > > > What I could not figure out is that this exception is from the Hadoop > framework, not Mahout. > > > > I am running Hadoop 2.6.0 and Mahout 0.9. > > > > What is causing this exception? > > > > Thanks, > Suman. > -- Rodolfo de Lima Viana Undergraduate in Computer Science at UFCG
