Reading and Writing Sequencefile using Hadoop 2.0 Apis -
i looking example using new api read , write sequence files. effectively need know how use these functions createwriter(configuration conf, org.apache.hadoop.io.sequencefile.writer.option... opts) the old definition not working me: sequencefile.createwriter( fs, conf, path, key.getclass(), value.getclass()); similarly need know code reading sequence file, follwoing deprecated: sequencefile.reader(fs, path, conf); here way use same - string uri = args[0]; configuration conf = new configuration(); path path = new path( uri); intwritable key = new intwritable(); text value = new text(); compressioncodec codec = new gzipcodec(); sequencefile.writer writer = null; option optpath = sequencefile.writer.file(path); option optkey = sequencefile.writer.keyclass(key.getclass()); option optval = sequencefile.writer.valueclass(value.getclass()); option optcom = sequencefile.writer.compression(compressiontype.record, codec); ...