<?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 import table from mysql to Hive failled:java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-import-table-from-mysql-to-Hive-failled-java-util/m-p/360907#M238463</link>
    <description>&lt;P&gt;I am trying to import a table from mysql to hive and i getting this errors(all 23 errors almost the same).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;023-01-09 18:00:15,370 INFO mapreduce.Job: Task Id : attempt_1673252459679_0002_m_000001_0, Status : FAILED Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.&amp;lt;init&amp;gt;(SqoopHCatImportHelper.java:88) at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45) at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the command is:&lt;/P&gt;&lt;P&gt;sqoop import -connect jdbc:mysql://master:3306/*** --username **** --password **** --query "select id,referrer,from_url,landing_page_url,url_title,platform_description,other_params,history from web_chat_text_ems_2019_07 where 1=1 and $CONDITIONS" --hcatalog-database itcast_ods --hcatalog-table web_chat_text_ems_ods -m 10 --split-by id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the versions:&amp;nbsp;&lt;SPAN&gt;sqoop 1.4.7, hadoop 3.3.1 hive4.0.0-alpha-2,mysql8.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And use the command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sqoop list-databases -connect jdbc:mysql://master:3306/ --username **** --password **** &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;why have the errors and how to solve it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 05:48:10 GMT</pubDate>
    <dc:creator>DylanGONG</dc:creator>
    <dc:date>2023-01-10T05:48:10Z</dc:date>
  </channel>
</rss>

