Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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"));
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB