Re: implementing comparable

2011-10-16 Thread Keith Thompson
Ahh ok ...I think I understand now. I added the default constructor (just initializing all values to 0) and now it seems to be running. :-) Thanks for your help. On Sun, Oct 16, 2011 at 9:43 PM, Brock Noland wrote: > Hi, > > Inline.. > > On Sun, Oct 16, 2011 at 9:40 PM, Keith Thompson >wrote:

Re: implementing comparable

2011-10-16 Thread Brock Noland
Hi, Inline.. On Sun, Oct 16, 2011 at 9:40 PM, Keith Thompson wrote: > Thanks. I went back and changed to WritableComparable instead of just > Comparable. So, I added the readFields and write methods. I also took > care of the typo in the constructor. :P > > Now I am getting this error: > > 1

Re: implementing comparable

2011-10-16 Thread Keith Thompson
Thanks. I went back and changed to WritableComparable instead of just Comparable. So, I added the readFields and write methods. I also took care of the typo in the constructor. :P Now I am getting this error: 11/10/16 21:34:08 INFO mapred.JobClient: Task Id : attempt_201110162105_0002_m_0

Re: implementing comparable

2011-10-15 Thread Brock Noland
Hi, Discussion, below. On Sat, Oct 15, 2011 at 4:26 PM, Keith Thompson wrote: > Hello, > I am trying to write my very first MapReduce code. When I try to run the > jar, I get this error: > > 11/10/15 17:17:30 INFO mapred.JobClient: Task Id : > attempt_201110151636_0003_m_01_2, Status : FAIL

implementing comparable

2011-10-15 Thread Keith Thompson
Hello, I am trying to write my very first MapReduce code. When I try to run the jar, I get this error: 11/10/15 17:17:30 INFO mapred.JobClient: Task Id : attempt_201110151636_0003_m_01_2, Status : FAILED java.lang.ClassCastException: class edu.bing.vfi5.KeyList at java.lang.Class.asSubclass(C