<?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: Error while inserting the data to another HIVE tables created in parquet format in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137857#M31861</link>
    <description>&lt;P&gt;Thanks Sindhu,&lt;/P&gt;&lt;P&gt;I have already tested that and working fine. However, I am wonder why it is not working.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 21:30:25 GMT</pubDate>
    <dc:creator>venkatibrahmam_</dc:creator>
    <dc:date>2016-06-14T21:30:25Z</dc:date>
    <item>
      <title>Error while inserting the data to another HIVE tables created in parquet format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137854#M31858</link>
      <description>&lt;P&gt;Hello Experts !&lt;/P&gt;&lt;P&gt; I have create the table1 using the custom cobol serde and table 2 with the same ddl but the storage format is different(parquet) and partitioned , later while trying to insert the data into table2 using the fololwing statement, I am getting the below error. Could you please have a look and guide me?&lt;/P&gt;&lt;P&gt;Statement:&lt;/P&gt;&lt;P&gt;insert overwrite table table2 PARTITION(dt='2016.06.13') select * from table1; &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt; Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"c5qtsys_detail_clnt_no":"2430","c5qtsys_detail_acct_no":"4510109900005012 ","c5qtsys_detail_log_date":20160406,"c5qtsys_detail_auth_log_time":151837,"c5qtsys_detail_maint_date":20151020,"c5qtsys_detail_maint_time":131009,"c5qtsys_detail_operator_id":"BLANMA","c5qtsys_detail_prev_frd_flag":"N","c5qtsys_detail_curr_frd_flag":"N","c5qtsys_detail_trans_amt":"+0000003.61","c5qtsys_detail_message_type":100,"c5qtsys_detail_reference_no":" ","c5qtsys_detail_trans_date":2015289,"c5qtsys_detail_trans_id":"305289672360311 ","c5qtsys_detail_trans_apvl_cd":"010837","c5qtsys_detail_merchant_class":"8661","filler":" "} at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:545) at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.processRow(MapRecordSource.java:83) ... 17 more Caused by: java.lang.ClassCastException: org.apache.hadoop.io.Text cannot be cast to org.apache.hadoop.hive.serde2.io.ParquetHiveRecord at org.apache.hadoop.hive.ql.io.parquet.write.ParquetRecordWriterWrapper.write(ParquetRecordWriterWrapper.java:124) at org.apache.hadoop.hive.ql.exec.FileSinkOperator.process(FileSinkOperator.java:753) at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:838) at org.apache.hadoop.hive.ql.exec.SelectOperator.process(SelectOperator.java:88) at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:838) at org.apache.hadoop.hive.ql.exec.TableScanOperator.process(TableScanOperator.java:97) at org.apache.hadoop.hive.ql.exec.MapOperator$MapOpCtx.forward(MapOperator.java:164) at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:535)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137854#M31858</guid>
      <dc:creator>venkatibrahmam_</dc:creator>
      <dc:date>2016-06-14T21:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error while inserting the data to another HIVE tables created in parquet format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137855#M31859</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11141/venkatibrahmamchinnari.html" nodeid="11141"&gt;@Venkat Chinnari&lt;/A&gt;&lt;P&gt;The issue seems to be with cast from text to parquet.  Try creating a sample table say table3 without serde properties but just 'stored as parquet' and check if insert overwrite works.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:14:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137855#M31859</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-06-14T21:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error while inserting the data to another HIVE tables created in parquet format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137856#M31860</link>
      <description>&lt;P&gt;can you post the SQL and table definition?&lt;/P&gt;&lt;P&gt;You may have incorrect properties as Parquet is not the same as a CSV file.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+ORC" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+ORC&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:26:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137856#M31860</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-06-14T21:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while inserting the data to another HIVE tables created in parquet format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137857#M31861</link>
      <description>&lt;P&gt;Thanks Sindhu,&lt;/P&gt;&lt;P&gt;I have already tested that and working fine. However, I am wonder why it is not working.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:30:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137857#M31861</guid>
      <dc:creator>venkatibrahmam_</dc:creator>
      <dc:date>2016-06-14T21:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error while inserting the data to another HIVE tables created in parquet format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137858#M31862</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE `table1 `(  |
|  columns )  |
| PARTITIONED BY (  |
|  `dt` string)  |
| ROW FORMAT DELIMITED  |
|  FIELDS TERMINATED BY '|'  |
| STORED AS INPUTFORMAT  |
|  'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'  |
| OUTPUTFORMAT  |
|  'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'  |
| LOCATION  |
|  'hdfs:location'  |
| TBLPROPERTIES (  |
|  'transient_lastDdlTime'='1465914063')&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:32:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137858#M31862</guid>
      <dc:creator>venkatibrahmam_</dc:creator>
      <dc:date>2016-06-14T21:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error while inserting the data to another HIVE tables created in parquet format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137859#M31863</link>
      <description>&lt;P&gt;parquet isnotcomma delimited&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 06:20:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137859#M31863</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-07-05T06:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error while inserting the data to another HIVE tables created in parquet format</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137860#M31864</link>
      <description>&lt;P&gt;Got the same issue.  Run hive command "desc formatted TABLE_NAME" found : &lt;/P&gt;&lt;P&gt;# Storage Information &lt;/P&gt;&lt;P&gt;SerDe Library:      org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe &lt;/P&gt;&lt;P&gt;InputFormat:        org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat &lt;/P&gt;&lt;P&gt;OutputFormat:       org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat&lt;/P&gt;&lt;P&gt;The error is caused by SerDe Library.&lt;/P&gt;&lt;P&gt;Drop table &amp;amp; recreate table, now the SerDe Library is org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe .&lt;/P&gt;&lt;P&gt;Now it's working.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 22:10:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-while-inserting-the-data-to-another-HIVE-tables/m-p/137860#M31864</guid>
      <dc:creator>awesome</dc:creator>
      <dc:date>2019-01-25T22:10:49Z</dc:date>
    </item>
  </channel>
</rss>

