|
Maha |
at Dec 12, 2010 at 4:37 am
|
⇧ |
| |
This is a compilation error I get in Eclipse ... So, I don't so how putting the hadoop-core.jar in the lib/ directory will change the error.
Do you suggest another way of running a hadoop java program ?
The way I do it is .. Create an Eclipse project , Build Paths --> Add External Archives: hadoop-core.jar and that's it ! When I check inside the jar, I can't find the binary class file I'm looking for. So how can I add a binary files to this jar? I tried adding the source file, but this requires a cascading addition of other files. What shall I do?
Although, I still appreciate your thoughts, thanks,
Maha
What I do is create a new pro
On Dec 11, 2010, at 6:27 PM, li ping wrote:Can you try to add the jar file in your Hadoop lib directory.
On Sun, Dec 12, 2010 at 8:00 AM, Maha A. Alabduljalil
wrote:
Hi all,
I extended my project path with the hadoop-0.20.2-core.jar file, but I can
see that some of the classes I need aren't there, so for example an error I
get:
" The type org.apache.commons.logging.Log cannot be resolved. It is
indirectly referenced from required .class files- implements "
Because I'm trying to use a MultiFileInputFormat for the WordCount example
as follows:
public class wcMultiFileInputFormat extends
MultiFileInputFormat<LongWritable, Text>{
public LineRecordReader getRecordReader(InputSplit split, JobConf
job, Reporter reporter){
return (new LineRecordReader());
}
}
Can someone guide me to how to solve this in a different way (ie.Make each
input file unSplittable) ... or how to add the required missing log.class?
Thank you so much,
Maha
--
-----李平