<?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 Hive Insert overwrite directory producing junk characters. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221169#M60534</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am seeing a strange issue with Hortonworks hive, the below HQL statement is producing a file with junk characters. Do you think I have missed something? Same query is producing readable data in Cloudera cluster. Can someone please suggest.&lt;/P&gt;&lt;P&gt;INSERT OVERWRITE LOCAL DIRECTORY '&amp;lt;Local Linux Directory&amp;gt;'
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
STORED AS TEXTFILE
SELECT col1,col2 FROM table1;
&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:33:56 GMT</pubDate>
    <dc:creator>vinayraghava198</dc:creator>
    <dc:date>2022-09-16T11:33:56Z</dc:date>
    <item>
      <title>Hive Insert overwrite directory producing junk characters.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221169#M60534</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am seeing a strange issue with Hortonworks hive, the below HQL statement is producing a file with junk characters. Do you think I have missed something? Same query is producing readable data in Cloudera cluster. Can someone please suggest.&lt;/P&gt;&lt;P&gt;INSERT OVERWRITE LOCAL DIRECTORY '&amp;lt;Local Linux Directory&amp;gt;'
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
STORED AS TEXTFILE
SELECT col1,col2 FROM table1;
&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:33:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221169#M60534</guid>
      <dc:creator>vinayraghava198</dc:creator>
      <dc:date>2022-09-16T11:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Insert overwrite directory producing junk characters.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221170#M60535</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/16673/vinayraghava1988.html" nodeid="16673"&gt;@Vinay R&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What is the format that table1 in hive? Is it stored in any other format apart from TEXTFILE? If so the data might be compressed if you have enabled the compression in your table property. &lt;/P&gt;&lt;P&gt;Execute this and try exporting it. set hive.exec.compress.output=false;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 13:19:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221170#M60535</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-05-05T13:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Insert overwrite directory producing junk characters.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221171#M60536</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/101204/hive-insert-overwrite-directory-producing-junk-cha.html#"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12437/balavigneshnagamuthuvenkatesan.html" nodeid="12437"&gt;@Bala Vignesh N V&lt;/A&gt; Thank you very much , the table I am querying was compressed and the above suggestion did help.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 13:58:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221171#M60536</guid>
      <dc:creator>vinayraghava198</dc:creator>
      <dc:date>2017-05-05T13:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Insert overwrite directory producing junk characters.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221172#M60537</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16673/vinayraghava1988.html" nodeid="16673"&gt;@Vinay R&lt;/A&gt; Glad it helped you. If you think it solves your problem then please accept the answer. &lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 14:06:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Insert-overwrite-directory-producing-junk-characters/m-p/221172#M60537</guid>
      <dc:creator>balavignesh_nag</dc:creator>
      <dc:date>2017-05-05T14:06:14Z</dc:date>
    </item>
  </channel>
</rss>

