Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Write data content into HFile.


Copy link to this message
-
Re: Write data content into HFile.
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 <[EMAIL PROTECTED]> 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"));
>