hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sreenath Madasu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15438) error: CF specified in importtsv.columns does not match with table CF
Date Sat, 16 Apr 2016 18:32:25 GMT

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

Sreenath Madasu commented on HBASE-15438:
-----------------------------------------

Steps to verify

1. Create a table in hbase as "Create tabel 'StockB', 'Current', 'Closing'"
2. Create a txt file with content "RK2	15.00	16.00"
3. Run command as 
hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.columns="HBASE_ROW_KEY, Current:Price,
Closing:Price" -Dimporttsv.bulk.output="{outputFileName}" StocksB {textFileName}

4. Note the space between ROW_KEY, and Current as well as Current:Price, and Closing:Price.
This is the cause of the problem.


> error: CF specified in importtsv.columns does not match with table CF
> ---------------------------------------------------------------------
>
>                 Key: HBASE-15438
>                 URL: https://issues.apache.org/jira/browse/HBASE-15438
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase
>    Affects Versions: 1.1.2
>         Environment: HDP 2.3 Ubuntu 14
>            Reporter: bob zhao
>            Assignee: Mikhail Antonov
>            Priority: Minor
>              Labels: easyfix, easytest
>         Attachments: patches_2016-04-16.patch
>
>
> Try to play with the hbase tsv import, get such error:
> ERROR: Column Families [ Current,  Closing] specified in importtsv.columns does not match
with any of the table StocksB column families [Closing, Current].
> the script is:
> hbase org.apache.hadoop.hbase.mapreduce.ImportTsv  -Dimporttsv.columns="HBASE_ROW_KEY,
Current:Price, Closing:Price"   -Dimporttsv.bulk.output="/user/bob/storeDataFileOutput/" 
StocksB   /user/bob/stocks.txt
> If i remove the space which behind the comma and before CF name, everything is fine.

> As a Dev, I like to add some space over there for easy reading and checking. 
> Please trim these CF names before processing, thanks!
> https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/ImportTsv.java
>  



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

Mime
View raw message