Hi, I was writing a mapreduce class to read from a text file and write the entries to a table. My Map function reads each line and outputs a key and a MapWritable as value. I was wondering while writing reduce using TableReduce, how to convert the key (IntWritable) to ImmutableBytesWritable and Mapwritable object to BatchUpdate so that my outputcollector doesn't complain in reduce function. It seems to enforce the signature where it collects the above two datatypes only.
Also I believe I can only use above two datatypes while using table reduce but couldn't understand them very well. How can I convert any datatype to the above two to write them to the tables. I tried looking for some sample code and found people were able to use OutputCollector with different datatypes earlier so I guess, this restriction is in the newer versions. I am using Hadoop and Hbase - 0.18.1. Any examples or help appreciated. Thanks -- Nishant Khurana Candidate for Masters in Engineering (Dec 2009) Computer and Information Science School of Engineering and Applied Science University of Pennsylvania
