[ 
https://issues.apache.org/jira/browse/HBASE-13982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14997277#comment-14997277
 ] 

NIDHI GAMBHIR commented on HBASE-13982:
---------------------------------------

Hi [[email protected]] please review the patch for usage update 
-

Usage: importtsv -Dimporttsv.columns=a,b,c <tablename> <inputdir>

Imports the given input directory of TSV data into the specified table.

The column names of the TSV data must be specified using the -Dimporttsv.columns
option. This option takes the form of comma-separated column names, where each
column name is either a simple column family, or a columnfamily:qualifier. The 
special
column name HBASE_ROW_KEY is used to designate that this column should be used
as the row key for each imported record. You must specify exactly one column
to be the row key, and you must specify a column name for every column that 
exists in the
input data. Another special columnHBASE_TS_KEY designates that this column 
should be
used as timestamp for each record. Unlike HBASE_ROW_KEY, HBASE_TS_KEY is 
optional.
You must specify at most one column as timestamp key for each imported record.
Record with invalid timestamps (blank, non-numeric) will be treated as bad 
record.
Note: if you use this option, then 'importtsv.timestamp' option will be ignored.
*Other special columns that can be specified are HBASE_CELL_TTL and*
*HBASE_CELL_VISIBILITY. HBASE_CELL_TTL designates that*
*this column will be used as a Cell's Time To Live (TTL) attribute.*
*HBASE_CELL_VISIBILITY designates that this column contains the visibility 
label expression.*

> Add info for visibility labels/cell TTLs to ImportTsv
> -----------------------------------------------------
>
>                 Key: HBASE-13982
>                 URL: https://issues.apache.org/jira/browse/HBASE-13982
>             Project: HBase
>          Issue Type: Bug
>          Components: mapreduce
>    Affects Versions: 1.1.0.1
>            Reporter: Lars George
>            Assignee: NIDHI GAMBHIR
>              Labels: beginner
>             Fix For: 2.0.0, 1.3.0
>
>         Attachments: HBASE-13982.patch, HBASE-13982_2.patch, 
> HBASE_13982_1.patch
>
>
> HBASE-9832 added support for two more optional, special TSV columns, but no 
> usage info was added. Add.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to