Member since
06-16-2017
6
Posts
0
Kudos Received
0
Solutions
05-25-2016
01:21 PM
Thanks @Jitendra Yadav It's working based on your suggestion i.e by adding "-- " before the Netezza connector specific parameters. sqoop import --direct --connect jdbc:netezza://nzserverip:5480/db1 --username user1 --password pass1 --table TAB1 --target-dir /test/tab1 --delete-target-dir --m 8 --verbose -- --max-errors 5 and the backend query run on Netezza (one of 8 as I used --m 😎 is as follows: CREATE EXTERNAL TABLE '/hadoop/yarn/local/usercache/root/appcache/application_1463651102463_0033/work/task_1463651102463_0033_m_000001/nzexttable-1.txt' USING (REMOTESOURCE 'JDBC' BOOLSTYLE 'T_F' CRINSTRING FALSE DELIMITER 44 ENCODING 'internal' FORMAT 'Text' INCLUDEZEROSECONDS TRUE NULLVALUE 'null' MAXERRORS 5) AS SELECT * FROM TAB1 WHERE (DATASLICEID % 8) = 1 Looking at the query, its taking into account the --max-error 5 argument (by adding MAXERRORS 5 in the query) .
... View more