hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: The method addCacheFIle(URI) is undefined for the type Job
Date Fri, 23 Sep 2011 16:52:14 GMT
Jun,

Common cause is that your URI class is not the right import.

It must be java.net.URI and not any other class. Fix this and your
problem would go away.

2011/9/23 谭军 <tanjun_2525@163.com>:
>  Hi,
> I encountered an error that I cannot understand.
>
> Configuration conf = new Configuration();
> Job job = new Job(conf, "job1");
> job.addCacheFile(new URI(args[0]));
>
> Why did it report "The method addCacheFile(URI) is undefined for the type
> Job"?
> Thanks!
> --
>
> Regards!
>
> Jun Tan
>
>



-- 
Harsh J

Mime
View raw message