You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Ramasubramanian Narayanan <ra...@gmail.com> on 2013/09/10 11:26:27 UTC
How to convert a text or csv file into HFile format and load into HBASE
Dear All,
Can you please share a sample code (Java) to convert a text/csv file into
HFILE and load it using HBASE API into HBASE.
regards,
Rams
Re: How to convert a text or csv file into HFile format and load into HBASE
Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Hi Rams,
Just to make sure, have you looked at importtsv?
http://hbase.apache.org/book/ops_mgt.html#importtsv
It's tabs, but you can easily update that to take comas or anything else.
Also, any specific reason you want to go from csv to HFiles to HBase? Or
you can go from csv to HBase?
JM
2013/9/10 Ramasubramanian Narayanan <ra...@gmail.com>
> Dear All,
>
> Can you please share a sample code (Java) to convert a text/csv file into
> HFILE and load it using HBASE API into HBASE.
>
> regards,
> Rams
>