<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Sqoop Netezza connector syntax for --ctrl-chars   --trunc-string in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187689#M58937</link>
    <description>&lt;PRE&gt;Hi I am trying to run sqoop command with options --ctrl-chars  --trunc-string
I am getting an errors saying 

17/04/04 14:23:09 ERROR tool.BaseSqoopTool: Error parsing arguments for export:
17/04/04 14:23:09 ERROR tool.BaseSqoopTool: Unrecognized argument: -ctrl-chars
17/04/04 14:23:09 ERROR tool.BaseSqoopTool: Unrecognized argument: -trunc-string
17/04/04 14:23:09 ERROR tool.BaseSqoopTool: Unrecognized argument: -max-errors

Sqoop version 1.4.6.2.5.3.0-37
Hortonworks HDP 2.5.3


My sqoop command is as below.

sqoop-export \
 -Dmapreduce.job.queuename=analyst \
 -Dmapreduce.job.name=web_event.sqp \
 --direct \
 --connect jdbc:netezza://fdhgfgjhkj:5480/dghnfgjhnfgj \
 --table fgjhfgjj \
 --username rjrjtru \
 -P \
 --export-dir /dataset-ste/secure-p/inbound/rtujrjryiutydidti/ \
 --input-escaped-by '\\' \
 --input-fields-terminated-by '\t' \
 --input-lines-terminated-by '\n' \
 --input-null-string '\\N' \
 --input-null-non-string '\\N' \
 -m 4 \
 --verbose \
 --ctrl-chars 
 --trunc-string 
 -max-errors #0
&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Apr 2017 02:54:07 GMT</pubDate>
    <dc:creator>rajesh_devabhak</dc:creator>
    <dc:date>2017-04-05T02:54:07Z</dc:date>
    <item>
      <title>Sqoop Netezza connector syntax for --ctrl-chars   --trunc-string</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187689#M58937</link>
      <description>&lt;PRE&gt;Hi I am trying to run sqoop command with options --ctrl-chars  --trunc-string
I am getting an errors saying 

17/04/04 14:23:09 ERROR tool.BaseSqoopTool: Error parsing arguments for export:
17/04/04 14:23:09 ERROR tool.BaseSqoopTool: Unrecognized argument: -ctrl-chars
17/04/04 14:23:09 ERROR tool.BaseSqoopTool: Unrecognized argument: -trunc-string
17/04/04 14:23:09 ERROR tool.BaseSqoopTool: Unrecognized argument: -max-errors

Sqoop version 1.4.6.2.5.3.0-37
Hortonworks HDP 2.5.3


My sqoop command is as below.

sqoop-export \
 -Dmapreduce.job.queuename=analyst \
 -Dmapreduce.job.name=web_event.sqp \
 --direct \
 --connect jdbc:netezza://fdhgfgjhkj:5480/dghnfgjhnfgj \
 --table fgjhfgjj \
 --username rjrjtru \
 -P \
 --export-dir /dataset-ste/secure-p/inbound/rtujrjryiutydidti/ \
 --input-escaped-by '\\' \
 --input-fields-terminated-by '\t' \
 --input-lines-terminated-by '\n' \
 --input-null-string '\\N' \
 --input-null-non-string '\\N' \
 -m 4 \
 --verbose \
 --ctrl-chars 
 --trunc-string 
 -max-errors #0
&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Apr 2017 02:54:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187689#M58937</guid>
      <dc:creator>rajesh_devabhak</dc:creator>
      <dc:date>2017-04-05T02:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Netezza connector syntax for --ctrl-chars   --trunc-string</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187690#M58938</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17027/rajeshdevabhaktuni.html" nodeid="17027"&gt;@Rajesh Babu Devabhaktuni&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Try stripping the command and use less options. Try and break it in to chunks to see where the problem is. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 10:30:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187690#M58938</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2017-04-05T10:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Netezza connector syntax for --ctrl-chars   --trunc-string</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187691#M58939</link>
      <description>&lt;P&gt;Below stackoverflow post talks about similar issue:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/25770698/sqoop-free-form-query-causing-unrecognized-arguments-in-hue-oozie" target="_blank"&gt;http://stackoverflow.com/questions/25770698/sqoop-free-form-query-causing-unrecognized-arguments-in-hue-oozie&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 10:46:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187691#M58939</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-04-05T10:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Netezza connector syntax for --ctrl-chars   --trunc-string</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187692#M58940</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Netezza driver with direct mode would support --ctrl-chars option.

Please make sure to use this option with preceeding --, like

sqoop import --direct --connect jdbc:netezza://&amp;lt;netezza_host&amp;gt;:5480/db --username user -P --table table --targe-dir hdfsdir \
– --ctrl-chars --crin-string --ignore-zero --trunc-string options&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 21:49:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187692#M58940</guid>
      <dc:creator>bolisettysunil</dc:creator>
      <dc:date>2017-04-05T21:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Netezza connector syntax for --ctrl-chars   --trunc-string</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187693#M58941</link>
      <description>&lt;OL&gt;
&lt;LI&gt;This works&lt;/LI&gt;&lt;LI&gt;sqoop-export \&lt;/LI&gt;&lt;LI&gt;-Dmapreduce.job.queuename=analyst \&lt;/LI&gt;&lt;LI&gt;-Dmapreduce.job.name=web_event.sqp \&lt;/LI&gt;&lt;LI&gt;--direct \&lt;/LI&gt;&lt;LI&gt;--connect jdbc:netezza://fdhgfgjhkj:5480/dghnfgjhnfgj \&lt;/LI&gt;&lt;LI&gt;--table fgjhfgjj \&lt;/LI&gt;&lt;LI&gt;--username rjrjtru \&lt;/LI&gt;&lt;LI&gt;-P \&lt;/LI&gt;&lt;LI&gt;--export-dir /dataset-ste/secure-p/inbound/rtujrjryiutydidti/ \&lt;/LI&gt;&lt;LI&gt;--input-escaped-by'\\' \&lt;/LI&gt;&lt;LI&gt;--input-fields-terminated-by'\t' \&lt;/LI&gt;&lt;LI&gt;--input-lines-terminated-by'\n' \&lt;/LI&gt;&lt;LI&gt;--input-null-string'\\N' \&lt;/LI&gt;&lt;LI&gt;--input-null-non-string'\\N' \&lt;/LI&gt;&lt;LI&gt;-m 4 \&lt;/LI&gt;&lt;LI&gt;--verbose \&lt;/LI&gt;&lt;LI&gt;-- \&lt;/LI&gt;&lt;LI&gt;--ctrl-chars \&lt;/LI&gt;&lt;LI&gt;--trunc-string \&lt;/LI&gt;&lt;LI&gt;-max-errors 20&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 05 Apr 2017 21:53:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Netezza-connector-syntax-for-ctrl-chars-trunc-string/m-p/187693#M58941</guid>
      <dc:creator>rajesh_devabhak</dc:creator>
      <dc:date>2017-04-05T21:53:10Z</dc:date>
    </item>
  </channel>
</rss>

