<?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: Cannot Insert Data from Text File Format Table to Parquet Format Table, MapRedTask Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/374823#M242159</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105221"&gt;@itdm_bmi&lt;/a&gt;&amp;nbsp;This error message is very generic. We could not say what caused the job to fail. Is it possible for you to share the YARN application log of&amp;nbsp;&lt;STRONG&gt;application_1690451589703_12741&amp;nbsp;&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;You may collect it using the command :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;yarn logs -applicationId application_1690451589703_12741 &amp;gt; /tmp/application_1690451589703_12741.log&lt;/LI-CODE&gt;&lt;P&gt;Attach this&amp;nbsp;application_1690451589703_12741.log file. If you are not comfortable sharing the log files here, you may file a support case. We'll be happy to assist.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 08:37:11 GMT</pubDate>
    <dc:creator>smruti</dc:creator>
    <dc:date>2023-08-02T08:37:11Z</dc:date>
    <item>
      <title>Cannot Insert Data from Text File Format Table to Parquet Format Table, MapRedTask Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/374818#M242156</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After Multi Delimiter Issue is solved. I got an error with data insertion.&lt;/P&gt;
&lt;P&gt;So, after the data successfully inserted to text file format table with rowserde hive.contrib.serde2.MultiDelimitSerDe. Then i need to insert those data to parquet format table.&lt;/P&gt;
&lt;P&gt;But when i ran the query to insert data, it failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error message: "[FATAL] 10:25:08 vaproject.xxx tHiveRow_1 Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used this script:&lt;/P&gt;
&lt;P&gt;"INSERT OVERWRITE TABLE ParquetTable PARTITION (datadt=dateint) SELECT * FROM TextFileTable"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="itdm_bmi_0-1690957715670.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38130i6946E55F7A76E511/image-size/medium?v=v2&amp;amp;px=400" role="button" title="itdm_bmi_0-1690957715670.png" alt="itdm_bmi_0-1690957715670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is wrong or what am i missing? Please need your help. Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gideon Maruli&lt;/P&gt;
&lt;P&gt;IT Data Management&lt;/P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error MapRedTask.JPG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39868i1C7FAB1EDEFAC1E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error MapRedTask.JPG" alt="Error MapRedTask.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Text File Table, Error MapRedTask.JPG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39869i27AA83042FBD0168/image-size/large?v=v2&amp;amp;px=999" role="button" title="Text File Table, Error MapRedTask.JPG" alt="Text File Table, Error MapRedTask.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Parquet Table, Error MapRedTask.JPG" style="width: 971px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39870i3C7F49C8D8270164/image-size/large?v=v2&amp;amp;px=999" role="button" title="Parquet Table, Error MapRedTask.JPG" alt="Parquet Table, Error MapRedTask.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Insert Data Query, Error MapRedTask.JPG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39871i6FE9D2A1FF9247EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Insert Data Query, Error MapRedTask.JPG" alt="Insert Data Query, Error MapRedTask.JPG" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:50:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/374818#M242156</guid>
      <dc:creator>itdm_bmi</dc:creator>
      <dc:date>2026-04-21T06:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Insert Data from Text File Format Table to Parquet Format Table, MapRedTask Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/374823#M242159</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105221"&gt;@itdm_bmi&lt;/a&gt;&amp;nbsp;This error message is very generic. We could not say what caused the job to fail. Is it possible for you to share the YARN application log of&amp;nbsp;&lt;STRONG&gt;application_1690451589703_12741&amp;nbsp;&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;You may collect it using the command :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;yarn logs -applicationId application_1690451589703_12741 &amp;gt; /tmp/application_1690451589703_12741.log&lt;/LI-CODE&gt;&lt;P&gt;Attach this&amp;nbsp;application_1690451589703_12741.log file. If you are not comfortable sharing the log files here, you may file a support case. We'll be happy to assist.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 08:37:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/374823#M242159</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2023-08-02T08:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Insert Data from Text File Format Table to Parquet Format Table, MapRedTask Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/375179#M242322</link>
      <description>&lt;P&gt;Sorry took a long time to reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't find that application_id anymore. So i try new task, just simply data insertion query with application_id = application_1690451589703_37927&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In log file i think i found the error. It is written&lt;/P&gt;&lt;P&gt;"Caused by: java.lang.RuntimeException: Map operator initialization failed&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.configure(ExecMapper.java:137)&lt;BR /&gt;... 22 more&lt;BR /&gt;Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassNotFoundException: Class org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe not found&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:326)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.MapOperator.setChildren(MapOperator.java:361)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.configure(ExecMapper.java:106)&lt;BR /&gt;... 22 more&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: Class org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe not found&lt;BR /&gt;at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2409)&lt;BR /&gt;at org.apache.hadoop.hive.ql.plan.PartitionDesc.getDeserializer(PartitionDesc.java:170)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:292)&lt;BR /&gt;... 24 more&lt;/P&gt;&lt;P&gt;2023-08-14 14:41:08,061 INFO [IPC Server handler 11 on 42850] org.apache.hadoop.mapred.TaskAttemptListenerImpl: Diagnostics report from attempt_1690451589703_37927_m_000000_1: Error: java.lang.RuntimeException: Error in configuring object&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:113)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:79)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:137)&lt;BR /&gt;at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:462)&lt;BR /&gt;at org.apache.hadoop.mapred.MapTask.run(MapTask.java:349)&lt;BR /&gt;at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:174)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1731)&lt;BR /&gt;at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:168)&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:110)&lt;BR /&gt;... 9 more&lt;BR /&gt;Caused by: java.lang.RuntimeException: Error in configuring object&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:113)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:79)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:137)&lt;BR /&gt;at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:38)&lt;BR /&gt;... 14 more&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:110)&lt;BR /&gt;... 17 more&lt;BR /&gt;Caused by: java.lang.RuntimeException: Map operator initialization failed&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.configure(ExecMapper.java:137)&lt;BR /&gt;... 22 more&lt;BR /&gt;Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassNotFoundException: Class org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe not found&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:326)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.MapOperator.setChildren(MapOperator.java:361)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.configure(ExecMapper.java:106)&lt;BR /&gt;... 22 more&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: Class org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe not found&lt;BR /&gt;at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2409)&lt;BR /&gt;at org.apache.hadoop.hive.ql.plan.PartitionDesc.getDeserializer(PartitionDesc.java:170)&lt;BR /&gt;at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:292)&lt;BR /&gt;... 24 more"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry i cant share the log file.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.cloudera.com/t5/image/serverpage/image-id/39875iF000728471803158/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Insert Data Query, Error MapRedTask.JPG" title="Insert Data Query, Error MapRedTask.JPG" /&gt;</description>
      <pubDate>Mon, 14 Aug 2023 09:39:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/375179#M242322</guid>
      <dc:creator>itdm_bmi</dc:creator>
      <dc:date>2023-08-14T09:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Insert Data from Text File Format Table to Parquet Format Table, MapRedTask Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/375443#M242452</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105221"&gt;@itdm_bmi&lt;/a&gt;&amp;nbsp;We are still seeing the error "&lt;SPAN&gt;&lt;STRONG&gt;java.lang.ClassNotFoundException: Class org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This means, you have not uploaded the "hive-contrib" jar to Hive classpath as mentioned &lt;A href="https://cwiki.apache.org/confluence/display/Hive/MultiDelimitSerDe" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are on CDP(&amp;gt;7.1.5 onward) then, we will not have to upload hive-contrib jar to the class path. This serde class is already added to Hive native serde list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You just need to alter the original table, and change the serde(&lt;STRONG&gt;Note&lt;/STRONG&gt;: only applies to CDP version &amp;gt; 7.1.5)&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALTER TABLE &amp;lt;table name&amp;gt; SET SERDE 'org.apache.hadoop.hive.serde2.MultiDelimitSerDe'&lt;/LI-CODE&gt;&lt;P&gt;If you are on an older version, do consider uploading to hive-contrib jar to hive classpath by uploading this to aux jar path location.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 10:08:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/375443#M242452</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2023-08-21T10:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Insert Data from Text File Format Table to Parquet Format Table, MapRedTask Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/375685#M242593</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105221"&gt;@itdm_bmi&lt;/a&gt;,&amp;nbsp;Have the replies helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 15:51:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-Insert-Data-from-Text-File-Format-Table-to-Parquet/m-p/375685#M242593</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-08-28T15:51:13Z</dc:date>
    </item>
  </channel>
</rss>

