Re: Multipleoutput file

2009-05-21 Thread 皮皮
i do it in another method: MultipleOutputs.addNamedOutput(job, "delete", SequenceFileOutputFormat.class, Text.class, IntWritable.class); MultipleOutputs.addNamedOutput(job, "compare", SequenceFileOutputFormat.class, LongWritable.class, IndexDoc.class); Path toDelete = null, toCompar

Re: Multipleoutput file

2009-05-21 Thread 皮皮
thank you for you reply, jason. well , how should i do if i just want to get certain file in the directory , not all of the files? 2009/5/21 jason hadoop > setInputPaths will take an array, or variable arguments. > or you can simply provide the directory that the individual files reside > in, >

Re: Multipleoutput file

2009-05-21 Thread jason hadoop
setInputPaths will take an array, or variable arguments. or you can simply provide the directory that the individual files reside in, and the individual files will be added. If there are other files in the directory, you may need to specify a custom input path filter via FileInputFormat.setInputPa

Re: Multipleoutput file

2009-05-21 Thread 皮皮
yes , but how can i get the commaSeperatedPaths? As i can't specify it handy. it's not practicable to do that: commaSeperatedPaths_1 = "MAPPINGOUTPUT-r-1"; commaSeperatedPaths_2 = "MAPPINGOUTPUT-r-2"; FileInputFormat.setInputPaths(job, commaSeperatedPaths_1); FileInputFormat.setInputPath