Import data from SAP HANA to Huawei Cloud big data service: MRS
This document focuses on the process of exporting data from SAP to an MRS cluster. Environmental information:
Install Sqoop1) Download open source Sqoop
2) Put the downloaded sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz package into the /opt/sqoop directory of the MRS cluster master node and extract it. 3) Enter the directory where the decompression is completed, modify the permissions and configuration
Add configuration:
4) Add system variables and add SQOOP_HOME to your PATH
Add some information:
After loading the environment
Import data from SAP HANA into HDFSObtain ngdbc.jar from the hdbclient folder of the SAP node (the general address is C:\Program Files\SAP\hdbclient). This is the driver that connects to the SAP HANA system. Put this Jar package into the Sqoop lib folder. Inside and change permissions
After the operation is complete, go to view the data on HDFS: Get data from SAP HANA and import it into HIVEObtain ngdbc.jar from the hdbclient folder of the SAP node (the general address is C:\Program Files\SAP\hdbclient). This is the driver that connects to the SAP HANA system. Put this Jar package into the Sqoop lib folder. Inside and change permissions
Enter beeline Check whether the hive table has been imported
Common error message:1, if the report can not find the class: jline.console.completer.ArgumentCompleter Need to add the missing jar package to Sqoop's lib folder
2. If you report the error: TEST01 table already exists, you need to delete or rename the TEST01 table storage address first (change the table name) other problems:1, the table name can not have "." (can not use the table name such as default.test01), if you need to specify the library, add the parameter currentschema=SYSTEM after the connection address
2. If there is no suitable type for the SAP data type to be converted to the HDFS data type, you need to change the type to a simpler data type. 3, the current test is a normal cluster, whether the security cluster has a certification problem has not been tested | |

华为开发者空间发布
让每位开发者拥有一台云主机
- 点赞
- 收藏
- 关注作者
评论(0)