Our Community is getting a major upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Error while loading data into Hbase table

avatar
Expert Contributor

Hello,

Trying to achieve LAB 4 in Hello World series, I'm facing following error when loading data into Hbase table

hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=, -Dimporttsv.columns="HBASE_ROW_KEY,events:driverId,events:driverName,events:eventTime,events:eventType,events:latitudeColumn,events:longitudeColumn,events:routeId,events:routeName,events:truckId" driver_dangerous_event hdfs://sandbox.hortonworks.com:/tmp/data.csv SyntaxError: (hbase):8: syntax error, unexpected ',' hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=, -Dimporttsv.columns="HBASE_ROW_KEY,events:driverId,events:driverName,events:eventTime,events:eventType,events:latitudeColumn,events:longitudeColumn,events:routeId,events:routeName,events:truckId" driver_dangerous_event hdfs://sandbox.hortonworks.com:/tmp/data.csv ^

It looks that it does'nt accept the separator syntax!! any idea please?

1 ACCEPTED SOLUTION

avatar
New Member

Execute the import command from bash. Seems like you were in hbase shell.

View solution in original post

3 REPLIES 3

avatar
New Member

Could you please try putting the separator inside double quotes? Like -Dimporttsv.separator=","

avatar
New Member

Execute the import command from bash. Seems like you were in hbase shell.

avatar
Expert Contributor

@mhegedus thank you very much 🙂