Thanks a lot. It helped me.

 
Regards,
Thamizhannal P


________________________________
From: Harsh J <[email protected]>
To: [email protected]; Thamizh <[email protected]>
Sent: Tuesday, 18 October 2011 6:16 PM
Subject: Re: Input path does not exist error

Hey Thamizh,

For some reason, your FS is being detected as a local FS instead of
HDFS. Hence, your program fails to find "/data/wordcount" on the local
filesystem.

It could be cause your configuration directory is not on the classpath
of the program that executes this driver code, or you haven't
configured your FS right (for 'fs.default.name').

On Tue, Oct 18, 2011 at 5:55 PM, Thamizh <[email protected]> wrote:
> Hi All,
>
> I am invoking a WordCount map/reduce job from a Java class. It ended with 
> below error, Though, I have input file on /data/wordcount.
> What could be the reason for this error?
>
> Hadoop version: 0.20.1
> 2011-10-18 16:24:00,478 ERROR [thread1] workflow.WorkerPool$Worker(121): 
> Error while executing the job
> org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does 
> not exist: file:/data/wordcount
>     at 
> org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus(FileInputFormat.java:224)
>     at 
> org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:241)
>     at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:885)
>     at 
> org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:779)
>     at org.apache.hadoop.mapreduce.Job.submit(Job.java:432)
>     at 
> com.mcafee.workflow.mapred.WorkFlowMapReduceJob.run(WorkFlowMapReduceJob.java:282)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at com.mcafee.workflow.WorkerPool$Worker.run(WorkerPool.java:105)
>
> Any help would be appreciated
>
>
>
> Regards,
> Thamizhannal P



-- 
Harsh J

Reply via email to