hadoop - Significance of --connection-manager in Sqoop -
i have written sqoop script import data teradata 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 going fall org.apache.sqoop.manager.genericjdbcmanager.
but when used --connection-manager above script --hive-drop-import-delims , --hive-overwrite stoped working
i'm trying undersdtand significance of connection-manager parameter how effect imports if i'm ommiting it
please suggest
you don't need use --driver
above. also, make sure have connection manager set in /etc/sqoop/conf/managers.d
. here steps working:
cd /etc/sqoop/conf
mkdir managers.d && cd managers.d
echo '<manager factory class> = <manager factory jar>' > td_connector.txt
manager factory jar should put in /var/lib/sqoop
, 1 can downloaded cloudera.
Comments
Post a Comment