As a component for batch data export, Loader can import and export data using a relational database.
You have prepared service data.
Procedure for MRS clusters earlier than 3.x:
JDBC Driver Version |
MySQL Version |
---|---|
Connector/J 5.1 |
MySQL 4.1, MySQL 5.0, MySQL 5.1, and MySQL 6.0 alpha |
Connector/J 5.0 |
MySQL 4.1, MySQL 5.0 servers, and distributed transaction (XA) |
Connector/J 3.1 |
MySQL 4.1, MySQL 5.0 servers, and MySQL 5.0 except distributed transaction (XA) |
Connector/J 3.0 |
MySQL 3.x and MySQL 4.1 |
In the preceding path, XXX indicates the MRS version number. Change it based on site requirements.
Change the key value of MYSQL to mysql-connector-java-5.1.21.jar, for example, MYSQL=mysql-connector-java-5.1.21.jar.
Procedure for MRS cluster 3.x and later versions:
Modify the permission on the JAR package of the relational database driver.
The version 8.1.0.1 is used as an example. Replace it with the actual version number.
cd ${BIGDATA_HOME}/FusionInsight_Porter_8.1.0.1/install/FusionInsight-Sqoop-1.99.3/FusionInsight-Sqoop-1.99.3/server/webapps/loader/WEB-INF/ext-lib
chown omm:wheel JAR package name
chmod 600 JARpackage name