RE: Which InputFormat to use?

2013-07-04 Thread Otto Mok
A trainer at Hortonworks told me that org.apache.hadoop.mapred is the old package. So for all intent and purposes use the new one: org.apache.hadoop.mapreduce. Otto out! From: Ahmed Eldawy [mailto:aseld...@gmail.com] Sent: July-04-13 2:30 PM To: user@hadoop.apache.org Subject: Which InputFormat

RE: Which InputFormat to use?

2013-07-04 Thread Devaraj k
Hi Ahmed, Hadoop 0.20.0 included the new mapred API, these sometimes refer as context objects. These are designed to make API easier to evolve in future. There are some differences between new & old API's, > The new API's favour abstract classes rather than interfaces, since abs

Re: Which InputFormat to use?

2013-07-04 Thread Azuryy Yu
Using InputFormat under mapreduce package. mapred package is very old package. but generally you can extend from FileInputFormat under o.a.h.mapreduce package. On Fri, Jul 5, 2013 at 1:23 PM, Devaraj k wrote: > Hi Ahmed, > > ** ** > > Hadoop 0.20.0 included the new mapred

Re: Which InputFormat to use?

2013-07-05 Thread Harsh J
Whichever you pick, both are supported right now and pretty much offer the same functionality. FWIW though, Pig and HBase both use the new APIs. On Fri, Jul 5, 2013 at 11:30 AM, Azuryy Yu wrote: > Using InputFormat under mapreduce package. mapred package is very old > package. but generally you