<?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>topic Re: Text cannot be cast to org.apache.hadoop.hive.ql.io.orc.OrcStruct Error when we try to write HDFS directory in ORC format from talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Text-cannot-be-cast-to-org-apache-hadoop-hive-ql-io-orc/m-p/2338602#M106823</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Are you using tHiveCreateTable and the tHiveLoad to create table and insert data into Hive?&lt;/P&gt; 
&lt;P&gt;It will allow to define if the table must store RC, ORC or TEXT files.&lt;/P&gt; 
&lt;P&gt;Could you please give us more information abour your current situation? Screenshots will be preferred.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 03:56:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-22T03:56:17Z</dc:date>
    <item>
      <title>Text cannot be cast to org.apache.hadoop.hive.ql.io.orc.OrcStruct Error when we try to write HDFS directory in ORC format from talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Text-cannot-be-cast-to-org-apache-hadoop-hive-ql-io-orc/m-p/2338601#M106822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I know this is more of hive query issue and nothing to do with Talend. But, I feel that I can get guidance from this community&lt;/P&gt; 
&lt;P&gt;We get the Error&amp;nbsp;Text cannot be cast to org.apache.hadoop.hive.ql.io.orc.OrcStruct Error when we try to insert data into hdfs directory in ORC format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The query we use is give below (Just a sample one give masking the original fields and table name)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;INSERT OVERWRITE DIRECTORY '/mainfolder/subfolder/Table_Name/temp' &amp;nbsp;stored as ORC &amp;nbsp;select CAST(Field_1 as string) as Field_1,&lt;SPAN&gt;select CAST(&lt;/SPAN&gt;&lt;SPAN&gt;Field_2&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;as string) as Field_2, Field_3&amp;nbsp;&lt;/SPAN&gt;from database.Table_test_data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Note: there is no CAST on Field_3 as this is int and not varchar.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We get this error only when we try with more number of records (million records). but the same query works fine if we run with 1000 records.. Is this data issue ? or is there anything wrong in the query ?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Text-cannot-be-cast-to-org-apache-hadoop-hive-ql-io-orc/m-p/2338601#M106822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Text cannot be cast to org.apache.hadoop.hive.ql.io.orc.OrcStruct Error when we try to write HDFS directory in ORC format from talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Text-cannot-be-cast-to-org-apache-hadoop-hive-ql-io-orc/m-p/2338602#M106823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Are you using tHiveCreateTable and the tHiveLoad to create table and insert data into Hive?&lt;/P&gt; 
&lt;P&gt;It will allow to define if the table must store RC, ORC or TEXT files.&lt;/P&gt; 
&lt;P&gt;Could you please give us more information abour your current situation? Screenshots will be preferred.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 03:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Text-cannot-be-cast-to-org-apache-hadoop-hive-ql-io-orc/m-p/2338602#M106823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-22T03:56:17Z</dc:date>
    </item>
  </channel>
</rss>

