hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yonghu <yongyong...@gmail.com>
Subject Re: Write data content into HFile.
Date Tue, 06 Mar 2012 14:48:02 GMT
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 <konrad@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"));
>

Mime
View raw message