Created 08-26-2016 03:43 PM
Hi,
I am looking for a way to specify the name of my Sqoop job (export to Teradata). Here is the command I execute:
/usr/bin/sqoop export \ -Dteradata.db.output.method=internal.fastload \ --connect <connection> \ --connection-manager org.apache.sqoop.teradata.TeradataConnManager \ --username myuser \ --password mypassword \ --table <table> \ --export-dir <sourceDir> \ --num-mappers <mappers> \ --verbose \ --input-null-non-string ''
I tried the following options in the command:
-Dmapreduce.job.id="myJob" -Dmapreduce.job.name="myJob" \
But it seems to be ignored and my job is always named "TeradataSqoopExportJob".
Is there a way to rename the job?
Thanks!
Created 10-23-2016 10:39 AM
@Pierre Villard I got it working with -D mapred.job.name=mySqoopTest
Created 08-26-2016 03:43 PM
can you please try the --create myjobname
sqoop job --create myjob -- import --connect jdbc:mysql://example.com/db \ --table mytable
Created 08-26-2016 06:27 PM
I'd prefer a solution without using the Sqoop metastore, but I'll try that anyway and let you know. I believe that in this case, that this is overridden by the connector code and not sure if we can do much.
Created 10-23-2016 10:39 AM
@Pierre Villard I got it working with -D mapred.job.name=mySqoopTest