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 谭军 <[email protected]>: > 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
