Method and device for integrating multiple versions of HBase by Sqoop
A sqoop-hbase, multi-version technology, applied in the field of Sqoop component improvement, can solve problems such as inability to fully support all functions of HBase2, achieve the effect of highlighting substantive features, reliable design principles, and wide application prospects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] Such as figure 1 As shown, the present invention provides a method for Sqoop integrated multi-version HBase, comprising the steps:
[0064] S1. Create the Sqoop-HBase parameter analysis module, the Sqoop-HBase parameter analysis module obtains the Sqoop command parameters, and parses the HBase parameter information from the Sqoop command parameters;
[0065] S2. create the HBase version selection module, the HBase version selection module selects the MapReduce parameters and strategies corresponding to the HBase version according to the HBase parameter information;
[0066] S3. update the Sqoop-MapReduce job generation module, the Sqoop-MapReduce job generation module obtains the original MapReduce job file generated according to the Sqoop command parameters, and adds the MapReduce parameters and strategies corresponding to the HBase version to the MapReduce job file;
[0067] S4. Update the MapReduce job submission module. The MapReduce job submission module packages ...
Embodiment 2
[0069] Such as figure 2 As shown, the present invention provides a method for Sqoop integrated multi-version HBase, comprising the steps:
[0070] S1. Create the Sqoop-HBase parameter analysis module, the Sqoop-HBase parameter analysis module obtains the Sqoop command parameters, and parses the HBase parameter information from the Sqoop command parameters; the specific steps are as follows:
[0071] S11. Create a Sqoop-HBase parameter parsing module;
[0072] S12. Obtain the Sqoop command script that the user uses the Sqoop component to write the imported data to HBase;
[0073] S13.Sqoop-HBase parameter parsing module saves the Sqoop command script in the shell file, and generates the shell script file;
[0074] S14. The Sqoop-HBase parameter analysis module reads the HBase parameter information related to HBase that Sqoop can identify from the shell script file, and extracts the HBase parameter information and sends it to the HBase version selection module; for example, h...
Embodiment 3
[0087] Such as image 3 As shown, the present invention provides a device for Sqoop integrating multi-version HBase, including:
[0088] Sqoop-HBase parameter analysis module creation unit 1, used to create Sqoop-HBase parameter analysis module, Sqoop-HBase parameter analysis module obtains Sqoop command parameters, and parses HBase parameter information from Sqoop command parameters; Sqoop-HBase parameter analysis module creation unit 1 includes:
[0089] Sqoop-HBase parameter analysis module creation subunit 1.1, used to create Sqoop-HBase parameter analysis module;
[0090] Sqoop command script acquisition subunit 1.2, which is used to obtain the Sqoop command script written by the user to import data to HBase using the Sqoop component;
[0091]The shell script file generation subunit 1.3 is used to set the Sqoop-HBase parameter analysis module to save the Sqoop command script into the shell file and generate the shell script file;
[0092] HBase parameter information ex...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


