Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
adeshpande2020
Contributor
Contributor

Sqoop import command line

I want to execute Sqoop command in Talend using tsystem; how to achieve this.

I want to import data from Mysql and with target directory as S3 bucket.

Basically I want to achieve following Sqoop command in Talend.

sqoop import -Dfs.s3a.access.key=$ACCES_KEY -Dfs.s3a.secret.key=$SECRET_KEY--connect jdbc:mysql:// --username $USER --password $PWD --table $TABLENAME --target-dir s3a://example-bucket/target-directory

Labels (2)
3 Replies
fdenis
Master
Master

iamabhishek
Creator III
Creator III

@hpan 
and what is the error that you are receiving during this, could you share that please.

fdenis
Master
Master

sometime you have to mix java and cmd escape char(\ / ' " or $) to have the right commande line.
try a simple one first.