AnsweredAssumed Answered

How to import data into Hbase table from the CSV file stored in HDFS?

Question asked by parth4 on Jul 25, 2016
Latest reply on Jul 25, 2016 by anilmapr


I have one csv file in this format.
id,c
1,c1
2,c2
3,c3
I have stored this file with name newcc.csv and stored it in HDFS. File location is /user/mapr/newcc.csv
I have created the hbase table with tablename 'data' and columnfamily 'd'
using the command >create 'data','d'
Then I am trying to import the data using the following command,
>Importtsv -Dimporttsv.columns=HBASE_ROW_KEY,d:c '-Dimporttsv.separator=,' data /user/mapr/newcc.csv
I am getting the error "syntax error, unexpected tSYMBEG
kindly help me with the solution.

Outcomes