Use Loader to import data from HDFS or OBS to HBase.
Setting Basic Job Information
Setting Data Source Information
Parameter |
Description |
Example Value |
---|---|---|
Input Path |
Input path of source files in HDFS or OBS NOTE:
You can use macros to define path parameters. For details, see Using Macro Definitions in Configuration Items. |
/user/test |
Path Filter |
Wildcard for filtering the directories in the input paths of the source files. Input Path is not used for filtering. If there are multiple filter conditions, use commas (,) to separate them. If the parameter is empty, the directories are not filtered. The regular expression filtering is not supported. |
* |
File Filter |
Wildcard for filtering the file names of the source files. If there are multiple filter conditions, use commas (,) to separate them. The value cannot be left blank. The regular expression filtering is not supported. |
* |
Encoding Type |
Source file encoding format, for example, UTF-8. This parameter can be set only in text file import. |
UTF-8 |
Suffix |
File name extension added to a source file after the source file is imported. If this parameter is empty, no file name extension is added to the source file. |
.log |
Setting Data Transformation
Input Type |
Output Type |
---|---|
CSV File Input |
HBase Output |
HTML Input |
HBase Output |
Fixed File Input |
HBase Output |
Setting Data Storage Information and Executing the Job
Storage Type |
Applicable Scenario |
Parameter |
Description |
Example Value |
---|---|---|---|---|
HBASE_BULKLOAD |
Large data volume |
HBase Instance |
HBase service instance that Loader selects from all available HBase service instances in the cluster. If the selected HBase service instance is not added to the cluster, the HBase job cannot be run properly. |
HBase |
Clear data before import |
Indicates whether to clear data in the original table before importing data. True indicates clearing data and False indicates not to clear data. If you do not set this parameter, the original table is not cleared by default. |
true |
||
Extractors |
Number of Maps that are started at the same time in a MapReduce task of a data configuration operation. The value must be less than or equal to 3000. |
20 |
||
Extractor Size |
HBase does not support this parameter. Please set Extractors. |
- |
||
HBASE_PUTLIST |
Small data volume |
HBase Instance |
HBase service instance that Loader selects from all available HBase service instances in the cluster. If the selected HBase service instance is not added to the cluster, the HBase job cannot be run properly. |
HBase |
Extractors |
Number of Maps that are started at the same time in a MapReduce task of a data configuration operation. The value must be less than or equal to 3000. |
20 |
||
Extractor Size |
HBase does not support this parameter. Please set Extractors. |
- |
Checking the Job Execution Result