hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 谭军 <tanjun_2...@163.com>
Subject Re:Re: The method addCacheFIle(URI) is undefined for the type Job
Date Sat, 24 Sep 2011 01:12:49 GMT
Harsh,
It is java.net.URI that is imported.


--


Regards!

Jun Tan




At 2011-09-24 00:52:14,"Harsh J" <harsh@cloudera.com> wrote:
>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