<?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 Re: sqoop 1.4.6.2.6.3.0-235 import failing in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198463#M76525</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt; The syntax is this&lt;/P&gt;&lt;PRE&gt;sqoop job (generic-args) (job-args)&lt;/PRE&gt;&lt;P&gt;So try changing your sqoop job to something like&lt;/P&gt;&lt;PRE&gt;sqoop job -Dmapreduce.job.user.classpath.first=true --create incjob4  -- import &amp;lt;Everything else&amp;gt;&lt;/PRE&gt;&lt;P&gt;Let know if that works!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 02:03:06 GMT</pubDate>
    <dc:creator>RahulSoni</dc:creator>
    <dc:date>2018-03-28T02:03:06Z</dc:date>
    <item>
      <title>sqoop 1.4.6.2.6.3.0-235 import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198459#M76521</link>
      <description>&lt;P&gt;following sqoop command is failing with the error shown below &lt;/P&gt;&lt;PRE&gt;sqoop job --create incjob  -- import --connect "jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=patronQA)(port=1526))(connect_data=(service_name=patron)))" --username PATRON --password patvps --as-avrodatafile --incremental append --check-column PUR_TRANS_DATE --table PATRON.TAB4 --split-by TAB4.PUR_DET_ID --compression-codec snappy --target-dir /sqoop-avro
sqoop job --exec incjob&lt;/PRE&gt;&lt;P&gt;command error&lt;/P&gt;&lt;PRE&gt;18/03/27 13:23:24 INFO mapreduce.Job: Task Id : attempt_1522170856018_0003_m_000000_2, Status : FAILED
Error: org.apache.avro.reflect.ReflectData.addLogicalTypeConversion(Lorg/apache/avro/Conversion;)V
Container killed by the ApplicationMaster.
Container killed on request. Exit code is 143
Container exited with a non-zero exit code 143.
&lt;/PRE&gt;&lt;P&gt;yarn application log output&lt;/P&gt;&lt;PRE&gt;echo "Copying debugging information"
# Creating copy of launch script
cp "launch_container.sh" "/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/launch_container.sh"
chmod 640 "/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/launch_container.sh"
# Determining directory contents
echo "ls -l:" 1&amp;gt;"/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/directory.info"
ls -l 1&amp;gt;&amp;gt;"/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/directory.info"
echo "find -L . -maxdepth 5 -ls:" 1&amp;gt;&amp;gt;"/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/directory.info"
find -L . -maxdepth 5 -ls 1&amp;gt;&amp;gt;"/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/directory.info"
echo "broken symlinks(find -L . -maxdepth 5 -type l -ls):" 1&amp;gt;&amp;gt;"/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/directory.info"
find -L . -maxdepth 5 -type l -ls 1&amp;gt;&amp;gt;"/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/directory.info"
echo "Launching container"
exec /bin/bash -c "$JAVA_HOME/bin/java -server -XX:NewRatio=8 -Djava.net.preferIPv4Stack=true -Dhdp.version=2.6.3.0-235 -Xmx1228m -Djava.io.tmpdir=$PWD/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA -Dhadoop.root.logfile=syslog org.apache.hadoop.mapred.YarnChild 10.100.44.20 59891 attempt_1522170856018_0003_m_000000_2 8796093022213 1&amp;gt;/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/stdout 2&amp;gt;/hadoop/yarn/log/application_1522170856018_0003/container_e08_1522170856018_0003_01_000005/stderr "
End of LogType:launch_container.sh.This log file belongs to a running container (container_e08_1522170856018_0003_01_000005) and so may not be complete.
************************************************************************************
&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Mar 2018 00:29:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198459#M76521</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-28T00:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: sqoop 1.4.6.2.6.3.0-235 import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198460#M76522</link>
      <description>&lt;P&gt;I narrowed the error , it is causing by the "--as-avrodatafile"  option , if I remove this option sqoop works fine.  &lt;/P&gt;&lt;P&gt;but I do want this option since I want to create AVRO file .  &lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 01:11:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198460#M76522</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-28T01:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: sqoop 1.4.6.2.6.3.0-235 import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198461#M76523</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Add the following property to your sqoop job.&lt;/P&gt;&lt;PRE&gt;-Dmapreduce.job.user.classpath.first=true&lt;/PRE&gt;&lt;P&gt;Try this and let me know if that works for you.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 01:14:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198461#M76523</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-28T01:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: sqoop 1.4.6.2.6.3.0-235 import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198462#M76524</link>
      <description>&lt;P&gt;thanks that worked but  its not working in scoop job , probably wrong syntax ?  &lt;/P&gt;&lt;PRE&gt;[hdfs@hadoop1 ~]$ sqoop job --create incjob4  -- import -Dmapreduce.job.user.classpath.first=true --connect "jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=patronQA)(port=1526))(connect_data=(service_name=patron)))" --username PATRON --password patvps --as-avrodatafile --incremental append --check-column PUR_TRANS_DATE --table PATRON.TAB4 --split-by TAB4.PUR_DET_ID --compression-codec snappy --target-dir /sqoop-avro
Warning: /usr/hdp/2.6.3.0-235/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
18/03/27 14:36:49 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.6.3.0-235
18/03/27 14:36:50 ERROR tool.BaseSqoopTool: Error parsing arguments for import:
18/03/27 14:36:50 ERROR tool.BaseSqoopTool: Unrecognized argument: -Dmapreduce.job.user.classpath.first=true
18/03/27 14:36:50 ERROR tool.BaseSqoopTool: Unrecognized argument: --connect
18/03/27 14:36:50 ERROR tool.BaseSqoopTool: Unrecognized argument: jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=patronQA)(port=1526))(connect_data=(service_name=patron)))
18/03/27 14:36:50 ERROR tool.BaseSqoopTool: Unrecognized argument: --username
18/03/27 14:36:50 ERROR tool.BaseSqoopTool: Unrecognized argument: PATRON
18/03/27 &lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Mar 2018 01:37:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198462#M76524</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-28T01:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: sqoop 1.4.6.2.6.3.0-235 import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198463#M76525</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt; The syntax is this&lt;/P&gt;&lt;PRE&gt;sqoop job (generic-args) (job-args)&lt;/PRE&gt;&lt;P&gt;So try changing your sqoop job to something like&lt;/P&gt;&lt;PRE&gt;sqoop job -Dmapreduce.job.user.classpath.first=true --create incjob4  -- import &amp;lt;Everything else&amp;gt;&lt;/PRE&gt;&lt;P&gt;Let know if that works!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 02:03:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198463#M76525</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-03-28T02:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: sqoop 1.4.6.2.6.3.0-235 import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198464#M76526</link>
      <description>&lt;P&gt;yes that worked . thanks &lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 03:25:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/sqoop-1-4-6-2-6-3-0-235-import-failing/m-p/198464#M76526</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-03-28T03:25:43Z</dc:date>
    </item>
  </channel>
</rss>

