Specifying Field Data Type
Function Description
HBase BulkLoad can read native data files, map fields in the data files to fields defined by HBase, and define data types of these fields.
You can define multiple methods in configuration.xml for importing data in batches.
The column name consists of letters, digits, and underscores and cannot contain any special characters.
Configuration Method
Details about how to specify the field data type are as follows:
For example, specify data types for columns SMS_ID, SMS_NAME, SMS_ADDRESS, and SMS_SERIAL.
<columns> <column index="1" type="int">SMS_ID</column> <column index="2" type="string">SMS_NAME</column> <column index="3" type="string">SMS_ADDRESS</column> </columns>
The supported data types include short, int, long, float, double, boolean, and string.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.