Thanks for your reply. But I am using hbase 0.90.2. There is no HFileWriterV2 class. Can you show me how to use HFileWriter constructor?
Thanks Yong On Tue, Mar 6, 2012 at 3:19 PM, Konrad Tendera <kon...@tendera.eu> wrote: > yonghu <yongyong313@...> writes: > >> >> Hello, >>... > > try something like that: > > Configuration conf = new Configuration(); > FileSystem fs = FileSystem.get(conf); > > HFile.Writer hwriter = new HFileWriterV2(conf, new CacheConfig(conf), fs, new > Path(fs.getWorkingDirectory() + "/foo")); >