trying to write output to a file whose name i can have control over

2010-06-10 Thread Giridhar Addepalli
Hi, I am using hadoop 0.20.2 Maperduce framework by default writes output to part-r- etc. I want to write to a file with different name. I am trying to override getDefaultWorkFile method in TextOutputFormat class. I am getting following error :

Re: trying to write output to a file whose name i can have control over

2010-06-10 Thread Harsh J
A better way (than holding a static variable) would be to define a Configuration key-value and use that from within your method to set the name each time. The Context object can help you retrieve the set configuration value. On Thu, Jun 10, 2010 at 6:19 PM, Giridhar Addepalli