Significance of --connection-manager in Sqoop

2019-05-29 19:00发布

I have written sqoop script to import data from Teradata to Hive.

`sqoop import \
--connect $JDBC_URL \
--driver com.teradata.jdbc.TeraDriver \
--username $Username \
--password $Password \
--table $TD_Table \
--hive-import \
--hive-overwrite \  
--hive-drop-import-delims \
--hive-table $Hive_Database.$Hive_Staging_Table \
--split-by $Split_Col \
-m $Mapper_Number`

Above script gives warning as

--connection-manager). Sqoop is going to fall back to org.apache.sqoop.manager.GenericJdbcManager.

But when i used --connection-manager with above script my --hive-drop-import-delims and --hive-overwrite stoped working

I'm trying to undersdtand what is the significance of connection-manager parameter how will it effect my imports if I'm ommiting it

Please suggest

1条回答
欢心
2楼-- · 2019-05-29 19:36

You don't need to use --driver above. Also, make sure you have the connection manager set in /etc/sqoop/conf/managers.d. Here are the steps to get it working:

  1. cd /etc/sqoop/conf
  2. mkdir managers.d && cd managers.d
  3. echo '<manager factory class> = <manager factory jar>' > td_connector.txt

Manager factory jar should be put in /var/lib/sqoop and one can be downloaded from Cloudera.

查看更多
登录 后发表回答